write a program whose output will be-
1
12
123
1234

Answer Posted / shrikantauti

main()
{
int i;
for (i=1;i<=4;i++)
{
printf(i);
}
}

Is This Answer Correct ?    4 Yes 28 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can main () be called recursively?

630


Is c language still used?

537


Explain what is a stream?

608


What are the Advantages of using macro

688


Can you explain the four storage classes in C?

644






what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2008


why return type of main is not necessary in linux

1706


Write a program to identify if a given binary tree is balanced or not.

684


How can you call a function, given its name as a string?

714


What is the use of printf() and scanf() functions?

635


What is difference between function overloading and operator overloading?

658


What is main () in c?

588


4. main() { int c=- -2; printf("c=%d",c); }

1370


What is a null string in c?

589


What are enums in c?

663