what will be the output of this program........
main()
{
int a=2,b=4,c=6;
printf("%d");
}
why it gives the value of third variable.

Answer Posted / lilly

u get garbage value!!!

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should volatile modifier be used?

562


What do you mean by dynamic memory allocation in c?

658


How do c compilers work?

619


a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list

641


Explain what is wrong with this statement? Myname = ?robin?;

1059






Explain what is the difference between the expression '++a' and 'a++'?

635


What is class and object in c?

600


Which is better malloc or calloc?

661


How can I insert or delete a line (or record) in the middle of a file?

581


What is the purpose of macro in C language?

674


What are the advantages of external class?

600


What is typedf?

676


Why void main is used in c?

567


What is the difference between text files and binary files?

684


What is the difference between struct and union in C?

582