pls help with this

0 views
Skip to first unread message

chiefo

unread,
Apr 24, 2005, 2:48:28 PM4/24/05
to pe...@googlegroups.com
1. what is missing in the ff statement?
scanf("%d", m);
assuming an integer is to be read into the integer
variable 'm'. what will be the effect of the absence
of such symbol?

2. what will happen at runtime when

a. two valid data item is supplied at input for
scanf() statement expecting 3 data items?

b. 4 valid data item is supplied at input for
scanf() statement expecting 3 data items?

3. the fxn scanf() returns a number when called.
what does that number denote?

4. identify the difference in the intepretation of
the 'do-while' structure and 'while' loop statement

5. the ff loop

i=0
while(i<10)
{
for (i==5) continue;
i=i+1
}

may run into infinite loop while


for(i=o; i<10; i++)
{
if (i==5) continue;

will not, why

Reply all
Reply to author
Forward
0 new messages