main()

{

int i = 3;

for (;i++=0;) printf(“%d”,i);

}



main() { int i = 3; for (;i++=0;) printf(“%d”,i); }..

Answer / susie

Answer :

Compiler Error: Lvalue required.

Explanation:

As we know that increment operators return rvalues and
hence it cannot appear on the left hand side of an
assignment operation.

Is This Answer Correct ?    14 Yes 1 No

Post New Answer

More C Code Interview Questions

1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.

3 Answers  


write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30

0 Answers  


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

1 Answers  


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

4 Answers   Corporate Society, HCL,


Cluster head selection in Wireless Sensor Network using C programming language.

0 Answers  






main() { int c=- -2; printf("c=%d",c); }

1 Answers   TCS,


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

4 Answers  


Find your day from your DOB?

15 Answers   Accenture, Microsoft,


what will be the position of the file marker? a: fseek(ptr,0,SEEK_SET); b: fseek(ptr,0,SEEK_CUR);

2 Answers  


write a program to Insert in a sorted list

4 Answers   Microsoft,


main() { int i; i = abc(); printf("%d",i); } abc() { _AX = 1000; }

2 Answers  


I need your help, i need a Turbo C code for this problem.. hope u'll help me guys.? Your program will have a 3x3 array. The user will input the sum of each row and each column. Then the user will input 3 values and store them anywhere, or any location or index, temporarily in the array. Your program will supply the remaining six (6) values and determine the exact location of each value in the array. Example: Input: Sum of row 1: 6 Sum of row 2: 15 Sum of row 3: 24 Sum of column 1: 12 Sum of column 2: 15 Sum of column 3: 18 Value 1: 3 Value 2: 5 Value 3: 6 Output: Sum of Row 1 2 3 6 4 5 6 15 7 8 9 24 Sum of Column 12 15 18 Note: Your program will not necessary sort the walues in the array Thanks..

0 Answers  


Categories