void main()
{
int x,y=2,z;
z=(z*=2)+(x=y=z);
printf("%d",z);
}

Answers were Sorted based on User's Feedback



void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }..

Answer / jack

4

Is This Answer Correct ?    4 Yes 3 No

void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }..

Answer / sanjay bk

8400,8521, when you run program then program giving output is different different answer.

Is This Answer Correct ?    2 Yes 2 No

void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }..

Answer / govind_srm

858993456

Is This Answer Correct ?    1 Yes 3 No

void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }..

Answer / l09

8

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More C Code Interview Questions

Given a list of numbers ( fixed list) Now given any other list, how can you efficiently find out if there is any element in the second list that is an element of the first list (fixed list)

3 Answers   Disney, Google, ZS Associates,


#include<stdio.h> main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; }

1 Answers  


Is it possible to print a name without using commas, double quotes,semi-colons?

7 Answers  


There is a lucky draw held every day. if there is a winning number eg 1876,then all possible numbers like 1867,1687,1768 etc are the numbers that match irrespective of the position of the digit. Thus all these numbers qualify fr the lucky draw prize Assume there is no zero digit in any numbers. write a program to show all the possible winning numbers if a "winning number"is passed as an arguments to the function.

1 Answers   Nagarro,


main() { int a=10,*j; void *k; j=k=&a; j++; k++; printf("\n %u %u ",j,k); }

1 Answers  






{ int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }

4 Answers  


main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

2 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,


int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().

2 Answers  


what is the code of the output of print the 10 fibonacci number series

2 Answers  


void main() { int *mptr, *cptr; mptr = (int*)malloc(sizeof(int)); printf(ā€œ%dā€,*mptr); int *cptr = (int*)calloc(sizeof(int),1); printf(ā€œ%dā€,*cptr); }

1 Answers  


1 o 1 1 0 1 0 1 0 1 1 0 1 0 1 how to design this function format in c-language ?

2 Answers  


Categories