main()

{

int i=10;

i=!i>14;

Printf ("i=%d",i);

}



main() { int i=10; i=!i>14; Printf ("i=%d",i); }..

Answer / susie

Answer :

i=0

Explanation:

In the expression !i>14 , NOT (!) operator has
more precedence than ‘ >’ symbol. ! is a unary logical
operator. !i (!10) is 0 (not of true is false). 0>14 is
false (zero).

Is This Answer Correct ?    71 Yes 4 No

Post New Answer

More C Code Interview Questions

print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!

35 Answers   Tata Elxsi, TCS, VI eTrans,


main() { char *p; int *q; long *r; p=q=r=0; p++; q++; r++; printf("%p...%p...%p",p,q,r); }

1 Answers  


main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitude"); }

2 Answers  


main() { int x=5; for(;x!=0;x--) { printf("x=%d\n", x--); } } a. 5, 4, 3, 2,1 b. 4, 3, 2, 1, 0 c. 5, 3, 1 d. none of the above

2 Answers   HCL,


Write a program that reads a dynamic array of 40 integers and displays only even integers

2 Answers  






4. Main() { Int i=3,j=2,c=0,m; m=i&&j||c&I; printf(“%d%d%d%d”,I,j,c,m); }

2 Answers   Broadridge,


What are the files which are automatically opened when a C file is executed?

1 Answers  


main() { extern int i; i=20; printf("%d",i); }

1 Answers   Value Labs,


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

1 Answers   Excel, Infosys,


main() { printf("%x",-1<<4); }

3 Answers   HCL, Sokrati, Zoho,


String copy logic in one line.

11 Answers   Microsoft, NetApp,


There were 10 records stored in “somefile.dat” but the following program printed 11 names. What went wrong? void main() { struct student { char name[30], rollno[6]; }stud; FILE *fp = fopen(“somefile.dat”,”r”); while(!feof(fp)) { fread(&stud, sizeof(stud), 1 , fp); puts(stud.name); } }

1 Answers  


Categories