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

how to check whether a linked list is circular.

11 Answers   Microsoft,


main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; }

1 Answers  


main() { int c = 5; printf("%d", main||c); } a. 1 b. 5 c. 0 d. none of the above

2 Answers   HCL,


Give a one-line C expression to test whether a number is a power of 2.

10 Answers   Microsoft,


How we will connect multiple client ? (without using fork,thread)

3 Answers   TelDNA,






main() { int i=3; switch(i) { default:printf("zero"); case 1: printf("one"); break; case 2:printf("two"); break; case 3: printf("three"); break; } }

1 Answers  


How we print the table of 2 using for loop in c programing?

14 Answers   HCL, Wipro,


Write a C program to print look and say sequence? For example if u get the input as 1 then the sequence is 11 21 1211 111221 312211 12112221 .......(it counts the no. of 1s,2s etc which is in successive order) and this sequence is used in run-length encoding.

1 Answers  


All the combinations of prime numbers whose sum gives 32

1 Answers   HHH,


How to return multiple values from a function?

7 Answers  


main() { char a[4]="HELLO"; printf("%s",a); }

3 Answers   CSC,


How to use power function under linux environment.eg : for(i=1;i<=n;i++){ pow(-1,i-1)} since it alerts undefined reference to 'pow'.

2 Answers  


Categories