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

Diff: between this 2 classes in terms of memory class A { int i; char c; double d; }; class A { double d; int i; char c; }; How it is calculating?

1 Answers   HCL,


There is a 100-story building and you are given two eggs. The eggs (and the building) have an interesting property that if you throw the egg from a floor number less than X, it will not break. And it will always brake if the floor number is equal or greater than X. Assuming that you can reuse the eggs which didn't broke; you got to find X in a minimal number of throws. Give an algorithm to find X in minimal number of throws.

5 Answers   Yahoo,


Can you pass an entire structure to functions?

0 Answers  


Write a simple code fragment that will check if a number is positive or negative.

0 Answers  


What happens if a header file is included twice?

0 Answers  






What is string function c?

0 Answers  


what is the use of keyword volatile??

4 Answers   LG Soft,


ATM machine and railway reservation class/object diagram

0 Answers   Zycus Infotech,


i=20,k=0; for(j=1;j<i;j=1+4*(i/j)) { k+=j<10?4:3; } printf("%d", k);

8 Answers   HCL,


char ch="{'H','I',0};printf("%s",ch);what is output

9 Answers   Accenture,


1.find the second maximum in an array? 2.how do you create hash table in c? 3.what is hash collision

9 Answers   HCL, Qualcomm,


sir i wanted to know how we wap in c to add numbers without using arithmetic operator in which digits are entered by user?

2 Answers  


Categories