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

Answers were Sorted based on User's Feedback



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

Answer / guest

error

Is This Answer Correct ?    0 Yes 0 No

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

Answer / himanshu

errors:declaration syntax missing
function call missing

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Code Interview Questions

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

1 Answers  


main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }

29 Answers   IBM, TCS, UGC NET, Wipro,


main() { int i=10; i=!i>14; Printf ("i=%d",i); }

1 Answers  


create a login program that ask username and password. if you input username or password 3 times wrong, the program will terminate else the program will prompt a message "congratulations"

2 Answers  


given integer number,write a program that displays the number as follows: First line :all digits second line : all except the first digit . . . . Last line : the last digit

8 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() { struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }

1 Answers  


what is brs test reply me email me kashifabbas514@gmail.com

0 Answers  


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  


code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123

1 Answers   HCL,


main() { static int var = 5; printf("%d ",var--); if(var) main(); }

1 Answers  


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

7 Answers  


Categories