main()

{

int a[10];

printf("%d",*a+1-*a+3);

}



main() { int a[10]; printf("%d",*a+1-*a+3); }..

Answer / susie

Answer :

4

Explanation:

*a and -*a cancels out. The result is as simple as 1 + 3 = 4 !

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More C Code Interview Questions

plz send me all data structure related programs

2 Answers  


#include<stdio.h> main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }

1 Answers  


write a c-program to display the time using FOR loop

3 Answers   HCL,


main() { int i =10, j = 20; clrscr(); printf("%d, %d, ", j-- , --i); printf("%d, %d ", j++ , ++i); } a. 20, 10, 20, 10 b. 20, 9, 20, 10 c. 20, 9, 19, 10 d. 19, 9, 20, 10

4 Answers   HCL,


C program to print magic square of order n where n > 3 and n is odd

2 Answers   Accenture,






struct aaa{ struct aaa *prev; int i; struct aaa *next; }; main() { struct aaa abc,def,ghi,jkl; int x=100; abc.i=0;abc.prev=&jkl; abc.next=&def; def.i=1;def.prev=&abc;def.next=&ghi; ghi.i=2;ghi.prev=&def; ghi.next=&jkl; jkl.i=3;jkl.prev=&ghi;jkl.next=&abc; x=abc.next->next->prev->next->i; printf("%d",x); }

1 Answers  


source code for delete data in array for c

1 Answers   TCS,


#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }

1 Answers  


How do I write a program to print proper subset of given string . Eg :input: abc output:{},{a},{b},{c},{a,b},{a,c},{b,c}, {a,b,c}.I desperately need this program please mail me to saravana6m@gmail.com

11 Answers   Deshaw, Infosys,


void main() { unsigned giveit=-1; int gotit; printf("%u ",++giveit); printf("%u \n",gotit=--giveit); }

1 Answers  


WAP to display 1,2,3,4,5........N

2 Answers  


Is it possible to type a name in command line without ant quotes?

1 Answers   Excel, Infosys,


Categories