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



b) 4 c) 6 d) 7 32. Any C program a) must contain at least one function b) need not contain ant..

Answer / priyanka

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

Is This Answer Correct ?    19 Yes 3 No

Post New Answer

More C Interview Questions

will u give me old quesrion papers for aptitude for L & t info tech?

1 Answers   Hindustan, L&T,


Why is a semicolon (;) put at the end of every program statement?

0 Answers  


What is switch in c?

0 Answers  


what is the difference between while and do while?

2 Answers  


What is the difference between declaring a variable and defining a variable?

0 Answers  






What is an example of enumeration?

1 Answers  


Write a program using two-dimensional array that lists the odd numbers and even numbers separately in a 12 input values.

1 Answers  


WHAT IS LOW LEVEL LANGUAGE?

2 Answers  


How arrays can be passed to a user defined function

0 Answers  


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

0 Answers   HP,


Between macros and functions,which is better to use and why?

0 Answers  


a=0; while(a<5) printf("%d\n",a++); how many times does the loop occurs? a.infinite b.5 c.4 d.6

7 Answers   TCS,


Categories