a blog computer logical programs. who one interested in programming language visit this blog

Owner: srsabariselvany

Listed in: Computers

Language: English

Tags: programming, programs, c++, java

Report it

Site Statistics

Unique Visitors Today:
Page Views Today:
Unique Visitors this Week:
Page Views this Week:
Unique Visitors this Month:
Page Views this Month:
Total Unique Visitors:
Total Page Views:
Total Hits Out:
Traffic Chart

Latest Blog Posts for Logical Programs

  • Printf Outside of All Functions
    on Feb 17, 2010 in Function
    Hi Readers, Today one logical questions for you! If you know the answer post it as comment. The question is "Is it possible to call printf function outside all functions( global )? Answer:...
  • 25
    on Feb 16, 2010 in pointer
    #include< stdio.h >main(){int **p,*a,b=1;a=&b;p=&a;printf("%d",*p);}predict the output...
  • 24
    on Feb 16, 2010 in Conditional statements
    #include < stdio.h >main(){int a=0;if(a=0){printf("hi");}printf("hello");}outputwhat'll be the output?
  • 21
    on Feb 15, 2010 in switch
    #include < stdio.h >main(){float a=1;switch(a){case 1: printf("%f",a); break;case 1.0: printf("%f",a); break;default: printf("%f",a);}return 0;}OutputCompilation Error: Switch Selection expression must be integral type. Constant expression requiredLo...
  • 22
    on Feb 15, 2010 in typecasting. ASCII Datatypes variables
    #include< stdio.h >main(){char a;a='A'-17;printf("%c",a);return 0;}Output0Logic:It's simple logic. ASCII value of character 'A' is 65.65-17=4848 is ASCII value of '0'.
  • 23
    on Feb 15, 2010 in Operators macros
    #include< stdio.h >#define merge(a,b) a##bmain(){int c=merge(4,0);c=c+1;printf("%d",c);return 0;}Output:41Logic:in previous post i said about merging operator. Again i'm going to explain what it's.Merging Operator: ## this will merge given strings...
  • 19
    on Feb 14, 2010 in Operators
    #include< stdio.h >main( ){int a=1,b=2;(a+b)++;printf("%d %d",a,b);}Output:compilation error: Lvalue required.Logic:we can increment the value of variables not constant. In this program (a+b)++ is given. (3)++ is not valid. We can't store values in...
  • 18
    on Feb 14, 2010 in operator Function
    #include < stdio.h >main(){int a=1;void function(int ,int ,int ); //Function Declarationfunction(++a,a,a++); //function call}void function(int i,int k,int j){printf("%d %d %d",i,k,j);}Output3      2 &n...
  • 20
    on Feb 14, 2010 in Operators pointer
    #include< stdio.h >main(){char a[]="srini selva";printf("%c\n",*(&a[1]));printf("%s\n",a+6);printf("%c\n",*(a+6));}outputrselvas...
  • 17
    on Feb 13, 2010
    #include< stdio.h >main(){int i=1;if(++i < 1 && ++i >1){printf("False");}printf("%d",i);} Output2How?&&   Logical AND operator.As far as AND operator concerned if both expression true ,it'll return true otherwise false.if first expr...
Loading Comments...


{ds_PageTotalItemCount} commentcomments

Post a Comment