b) 4 c) 6 d) 7
32. Any C program
a) must contain at least one function b) need not contain
ant function
c) needs input data d) none of the above
33. Using goto inside for loop is equivalent to using
a) continue b) break c) return d)none of the above
34. The program fragment
int a=5, b=2;
printf(“%d”,a+++++b);
a) prints 7 b)prints 8 c) prints 9 d)none of the above
35. printf(“ab” , “cd”,”ef”); prints
a) ab abcdef c) abcdef, followed by garbage value d) none of
the above
36. Consider the following program segment.
i=6720; j=4;
while((i%j)==0)

{

i=i/j;

j=j+1;

}

On termination j will have the value

a) 4 b) 8 c) 9 d) 6720

Answer Posted / priyanka

any c program must contain atleast one fuction which is called main()

Is This Answer Correct ?    19 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I open files mentioned on the command line, and parse option flags?

606


How many types of operator or there in c?

616


Why c language?

662


Why is #define used?

804


Write a program to print all permutations of a given string.

658






Explain what is the stack?

653


What are the types of operators in c?

624


What are logical errors and how does it differ from syntax errors?

674


What does volatile do?

577


What is the purpose of main( ) in c language?

642


What are structure members?

609


Does c have function or method?

603


Why is structure padding done in c?

661


What does nil mean in c?

690


Tell us something about keyword 'auto'.

680