#include<stdio.h>
void main()
{
int a [5];
for (i=0; i<=4; i++)
printf(ā%dā ,a[i]);
}
Answer Posted / kapil
1 2 3 4 5
Is This Answer Correct ? | 3 Yes | 14 No |
Post New Answer View All Answers
Can a file other than a .h file be included with #include?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
What is break statement?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
What is string function c?
What is a example of a variable?
What are the difference between a free-standing and a hosted environment?
What is a pointer and how it is initialized?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What are structures and unions? State differencves between them.
What are the advantages of c language?
Explain two-dimensional array.
What is difference between function overloading and operator overloading?
Write a program for finding factorial of a number.
What are header files why are they important?