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.
Answers were Sorted based on User's Feedback
Answer / srsabariselvan
6
because it'll print the last garbage value stored.
Is This Answer Correct ? | 3 Yes | 1 No |
How can I find the modification date and time of a file?
What is #include conio h?
What is c method?
Tell me what is the purpose of 'register' keyword in c language?
What is include directive in c?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
How does the C program handle segmentation faults?
5. What kind of sorting is this: SORT (k,n) 1.[Loop on I Index] repeat thru step2 for i=1,2,........n-1 2.[For each pass,get small value] min=i; repeat for j=i+1 to N do { if K[j]<k[min] min=j; } temp=K[i];K[i]=K[min];K[min]=temp; 3.[Sorted Values will be returned] A)Bubble Sort B)Quick Sort C)Selection Sort D)Merge Sort
What is true about the following C Functions a.Need not return any value b.Should always return an integer c.Should always return a float d.Should always return more than one value.
Explain threaded binary trees?
To find whether a number is even or odd without using any conditional operator??
12 Answers College School Exams Tests, IBM,
What are data structures in c and how to use them?