int j =15,i;
for (i=1; 1<5; ++i)
{printf ("%d%d
",j,i);
j = j-3;
}

Answers were Sorted based on User's Feedback



int j =15,i; for (i=1; 1<5; ++i) {printf ("%d%d ",j,i); j = j-3; }..

Answer / arun

Infinite Loop....Loop does not end...Because condition 1<5 is always True then the answer like this..,
151
122
93
64
35
06
-37
.
.
.

Is This Answer Correct ?    6 Yes 0 No

int j =15,i; for (i=1; 1<5; ++i) {printf ("%d%d ",j,i); j = j-3; }..

Answer / chelle

is j= 12?

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More C Interview Questions

How does sizeof know array size?

0 Answers  


Output for following program using for loop only * * * * * * * * * * * * * * *

3 Answers  


What is Function Pointer? Explain with example?

3 Answers  


What is infinite loop?

0 Answers  


What is p in text message?

0 Answers  






difference between spiral and waterfall model

1 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

0 Answers   IBM,


What is wrong with this initialization?

0 Answers  


24.what is a void pointer? 25.why arithmetic operation can’t be performed on a void pointer? 26.differentiate between const char *a; char *const a; and char const *a; 27.compare array with pointer? 28.what is a NULL pointer? 29.what does ‘segmentation violation’ mean? 30.what does ‘Bus Error’ mean? 31.Define function pointers? 32.How do you initialize function pointers? Give an example? 33.where can function pointers be used?

2 Answers  


is c language is a object oreinted language?

5 Answers   TCS,


What is meant by preprocessor in c?

0 Answers  


Why pointers are used?

0 Answers  


Categories