#include<stdio.h>
int main()
{ int i=0,j=1,k=2,m,n=0;
m=i++&&j++&&k++||n++;
printf("%d,%d,%d,%d,%d",i,j,k,m,n);
}

Answers were Sorted based on User's Feedback



#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||..

Answer / boopathi

0,1,2,o,o

Is This Answer Correct ?    2 Yes 9 No

#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||..

Answer / a.sivasankar

i=0,j=1,k=3,m=0,n=0

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More C Interview Questions

define switch statement?

6 Answers   CTS,


#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts("NULL"); else if(FALSE) puts("TRUE"); else puts("FALSE"); }

1 Answers  


Which header file is essential for using strcmp function?

0 Answers  


Place the #include statement must be written in the program?

0 Answers  


what is a function pointer and how all to declare ,define and implement it ???

4 Answers   Honeywell,






Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

0 Answers  


What will be the output of following program #include main() { int x,y = 10; x = y * NULL; printf("%d",x); }

1 Answers  


How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST

6 Answers   Adobe, Huawei,


write a program to find the largest and second largest integer from an array

2 Answers   Value Labs,


Is int a keyword in c?

0 Answers  


What are the functions to open and close the file in c language?

0 Answers  


b) 4 c) 6 d) 7 32. Any C program a) must contain at least one function b) need not contain ant function c) needs input data d) none of the above 33. Using goto inside for loop is equivalent to using a) continue b) break c) return d)none of the above 34. The program fragment int a=5, b=2; printf(“%d”,a+++++b); a) prints 7 b)prints 8 c) prints 9 d)none of the above 35. printf(“ab” , “cd”,”ef”); prints a) ab abcdef c) abcdef, followed by garbage value d) none of the above 36. Consider the following program segment. i=6720; j=4; while((i%j)==0) { i=i/j; j=j+1; } On termination j will have the value a) 4 b) 8 c) 9 d) 6720

1 Answers   HCL,


Categories