printf("%d",(printf("Hello")); What it returns?

Answer Posted / sangeetha

the inner printf statement will print Hello but the outer
printf is %d it will print an integer but we didnt call the
value it will give u the garbage value.and the output of the
program will be hello5.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the characteristics of arrays in c?

616


What is a keyword?

747


What is the equivalent code of the following statement in WHILE LOOP format?

769


Do you know pointer in c?

593


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1522






What is New modifiers?

671


write a program to create a sparse matrix using dynamic memory allocation.

4373


What is define directive?

642


What is a pointer in c?

683


What does do in c?

610


What do you mean by dynamic memory allocation in c?

652


Can we change the value of constant variable in c?

578


Write a program to print numbers from 1 to 100 without using loop in c?

642


What is #include cctype?

580


What is the best way to store flag values in a program?

580