Write a C program to read a character, integer and floating point number and display the with a proper message
Find the output for the following C program#includeint SumElement(int *,int);void main(void){int x[10];int i=10;for(;i;){i--;*(x+i)=i;}printf("%d",SumElement(x,10));}int SumElement(int array[],int size){int i=0;float sum=0;for(;i
Find the output for the following C programmain(){int a=0;if(a=0) printf("Ramco Systemsn");printf("Ramco Systemsn");}
Only one time "Ramco Systems" will be printed
Find the output for the following C programmain(){char *p1="Name";char *p2;p2=(char *)malloc(20);while(*p2++=*p1++);printf("%sn",p2);}
An empty string
Find the output for the following C programmain(){int x=20,y=35;x = y++ + x++;y = ++y + ++x;printf("%d %dn",x,y);}
57; 94
Find the output for the following C programmain(){int x=5;printf("%d %d %dn",x,x<<2,x>>2);}
5; 20; 1
Find the output for the following C program#define swap1(a,b) a=a+b;b=a-b;a=a-b;main(){int x=5,y=10;swap1(x,y);printf("%d %dn",x,y);swap2(x,y);printf("%d %dn",x,y);}int swap2(int a,int b){int temp;temp=a;b=a;a=temp;return;}
10; 5
Find the output for the following C programmain(){char *ptr = "Ramco Systems";(*ptr)++;printf("%sn",ptr);ptr++;printf("%sn",ptr);}
Samco Systems
Find the output for the following C program#includemain(){char s1[]="Ramco";char s2[]="Systems";s1=s2;printf("%s",s1);}
Compilation error giving it cannot be a modifiable 'lvalue'
Find the output for the following C program#includemain(){char *p1;char *p2;p1=(char *) malloc(25);p2=(char *) malloc(25);strcpy(p1,"Ramco");strcpy(p2,"Systems");strcat(p1,p2);printf("%s",p1);}
RamcoSystems
View page [1] 2 3 4 Next >>

Go Top