#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


Please Help Members By Posting Answers For Below Questions

Can a file other than a .h file be included with #include?

684


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 ].

639


What is break statement?

631


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

664


What is string function c?

563






What is a example of a variable?

551


What are the difference between a free-standing and a hosted environment?

743


What is a pointer and how it is initialized?

607


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

656


What are structures and unions? State differencves between them.

614


What are the advantages of c language?

664


Explain two-dimensional array.

625


What is difference between function overloading and operator overloading?

654


Write a program for finding factorial of a number.

629


What are header files why are they important?

578