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 much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
write a program structure to find average of given number
What is the size of structure pointer in c?
What is the main difference between calloc () and malloc ()?
ABCDCBA ABC CBA AB BA A A
Can U write a C-program to print the size of a data type without using the sizeof() operator? Explain how it works inside ?
How can you check to see whether a symbol is defined?
What does a run-time "null pointer assignment" error mean?
Write a program for the following series? 1 121 12321 1234321 123454321 12345654321 1234567654321 123456787654321 12345678987654321 1234567890987654321 123456789010987654321 12345678901210987654321 1234567890123210987654321 .........1234321............ ..........123454321............ ..........12345654321............ 7 8 9 0 1 Pls............?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
Are c and c++ the same?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.