void main()

{

while(1){

if(printf("%d",printf("%d")))

break;

else

continue;

}

}

Answer Posted / susie

Answer :

Garbage values

Explanation:

The inner printf executes first to print some garbage value.
The printf returns no of characters printed and this value
also cannot be predicted. Still the outer printf prints
something and so returns a non-zero value. So it encounters
the break statement and comes out of the while statement.

Is This Answer Correct ?    21 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Develop a routine to reflect an object about an arbitrarily selected plane

3006


write a program for area of circumference of shapes

2040


What is full form of PEPSI

1875


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2267


Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines

3036






To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']

510


How can you relate the function with the structure? Explain with an appropriate example.

2925


Cluster head selection in Wireless Sensor Network using C programming language.

3121


why nlogn is the lower limit of any sort algorithm?

2382


Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.

2694


How to palindrom string in c language?

8904


write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30

2229


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

2417


#include int main(void) { int a=4, b=2; a=b<>2 ; printf("%d",a); return 0; }

1082


Sir... please give some important coding questions asked by product companies..

1805