printf("%d",(printf("Hello")); What it returns?
Answer Posted / milan
it will return hello5,firstly the inner printf executes
print the hello and return the number of characters printed
that is 5 which get printed by outer printf...
More info at:
http://clanguagestuff.blogspot.com/2011/02/what-printf-returns.html
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
Explain what is the general form of a c program?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
the question is that what you have been doing all these periods (one year gap)
How will you delete a node in DLL?
How can you convert integers to binary or hexadecimal?
Explain the binary height balanced tree?
Why is it usually a bad idea to use gets()? Suggest a workaround.
What does *p++ do?
What is character constants?
What are qualifiers and modifiers c?
What is the usage of the pointer in c?
What do you mean by dynamic memory allocation in c? What functions are used?
In a byte, what is the maximum decimal number that you can accommodate?
Explain how are 16- and 32-bit numbers stored?