main()

{

if (!(1&&0))

{

printf("OK I am done.");

}

else

{

printf("OK I am gone.");

}

}

a. OK I am done

b. OK I am gone

c. compile error

d. none of the above

Answers were Sorted based on User's Feedback



main() { if (!(1&&0)) { printf("OK I am done."); } ..

Answer / guest

a)

Is This Answer Correct ?    16 Yes 0 No

main() { if (!(1&&0)) { printf("OK I am done."); } ..

Answer / sivakrishna

none of the aboue

Is This Answer Correct ?    0 Yes 0 No

main() { if (!(1&&0)) { printf("OK I am done."); } ..

Answer / karthi

compile error

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More C Code Interview Questions

main() { int i=_l_abc(10); printf("%d\n",--i); } int _l_abc(int i) { return(i++); }

2 Answers  


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  


What is the output for the following program main() { int arr2D[3][3]; printf("%d\n", ((arr2D==* arr2D)&&(* arr2D == arr2D[0])) ); }

1 Answers  


how to test pierrot divisor

0 Answers  


In the following pgm add a stmt in the function fun such that the address of 'a' gets stored in 'j'. main(){ int * j; void fun(int **); fun(&j); } void fun(int **k) { int a =0; /* add a stmt here*/ }

1 Answers  






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  


main() { int x=5; clrscr(); for(;x<= 0;x--) { printf("x=%d ", x--); } } a. 5, 3, 1 b. 5, 2, 1, c. 5, 3, 1, -1, 3 d. –3, -1, 1, 3, 5

2 Answers   HCL,


main() { unsigned int i=65000; while(i++!=0); printf("%d",i); }

1 Answers  


main() { char *a = "Hello "; char *b = "World"; clrscr(); printf("%s", strcat(a,b)); } a. Hello b. Hello World c. HelloWorld d. None of the above

3 Answers   HCL,


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

2 Answers  


writte a c-programm to display smill paces

2 Answers  


main() { char not; not=!2; printf("%d",not); }

1 Answers  


Categories