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
What is size of union in c?
How do you override a defined macro?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
What is #include cctype?
Differentiate between the expression “++a” and “a++”?
What is a function simple definition?
Why header file is used in c?
How do I create a directory? How do I remove a directory (and its contents)?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
how logic is used
What functions are used in dynamic memory allocation in c?
ATM machine and railway reservation class/object diagram
Can a function argument have default value?
How to throw some light on the b tree?
What is sizeof int?