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 / srsabariselvan

6
because it'll print the last garbage value stored.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the rules for the identifier?

673


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

1519


formula to convert 2500mmh2o into m3/hr

499


int far *near * p; means

3123


What are the rules for identifiers in c?

588






What happens if header file is included twice?

655


Here is a good puzzle: how do you write a program which produces its own source code as output?

600


Explain the advantages and disadvantages of macros.

627


What are the Advantages of using macro

688


Explain a file operation in C with an example.

664


What is data type long in c?

626


Explain what is the advantage of a random access file?

666


how do you execute a c program in unix.

637


regarding pointers concept

1575


How to set file pointer to beginning c?

671