void main ()

{

int x = 10;

printf ("x = %d, y = %d", x,--x++);

}

a. 10, 10

b. 10, 9

c. 10, 11

d. none of the above

Answers were Sorted based on User's Feedback



void main () { int x = 10; printf ("x = %d, y = %d", x,--x++); } a...

Answer / guest

d) Lvalue required

Is This Answer Correct ?    16 Yes 4 No

void main () { int x = 10; printf ("x = %d, y = %d", x,--x++); } a...

Answer / sandeep

answer



d> non of above
an error display at compile time L value required

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More C Code Interview Questions

main() { int i=10,j=20; j = i, j?(i,j)?i:j:j; printf("%d %d",i,j); }

2 Answers   Adobe, CSC,


Write a single line c expression to delete a,b,c from aabbcc

2 Answers   Microsoft,


write a program to Insert in a sorted list

4 Answers   Microsoft,


x=2 y=3 z=2 x++ + y++; printf("%d%d" x,y);

2 Answers  


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

2 Answers  






Is the following code legal? struct a { int x; struct a *b; }

2 Answers  


main() { int i = 0xff ; printf("\n%d", i<<2); } a. 4 b. 512 c. 1020 d. 1024

2 Answers   HCL,


how to check whether a linked list is circular.

11 Answers   Microsoft,


main() { int i=400,j=300; printf("%d..%d"); }

3 Answers  


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  


There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.

1 Answers   TCS,


How to swap two variables, without using third variable ?

104 Answers   AB, ADP, BirlaSoft, Cisco, Cygnet Infotech, HCL, Hewitt, Honeywell, HP, IBM, Infosys, Manhattan, Microsoft, Mobius, Percept, Satyam, SofTMware, TCS, Wipro, Yamaha,


Categories