4)What would be the output?
main()
{
int num=425;
pf("%d",pf("%d",num));
}

a)Comp error
b)4425
c)4253
d)3435
e)none

Answer Posted / aswini

see.printf is a function that returns number.hence it will
return 3.then as there is a %d it will return the number in
its locality.hence it will return 425.
so the answer is 4253....

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I ensure that integer arithmetic doesnt overflow?

608


Explain how do you print only part of a string?

650


What are header files and what are its uses in C programming?

638


Explain what is dynamic data structure?

648


Write a factorial program using C.

645






Explain zero based addressing.

610


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

1645


What is a constant and types of constants in c?

605


What are file streams?

572


What is c++ used for today?

669


What is function in c with example?

631


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

1489


Why can’t we compare structures?

815


What is the use of static variable in c?

596


what are the different storage classes in c?

662