what wud be the output?
main()
{
char *str[]={
"MANISH"
"KUMAR"
"CHOUDHARY"
};
printf("\nstring1=%s",str[0]);
printf("\nstring2=%s",str[1]);
printf("\nstring3=%s",str[2]);
a)string1=Manish
string2=Kumar
string3=Choudhary
b)string1=Manish
string2=Manish
string3=Manish
c)string1=Manish Kumar Choudhary
string2=(null)
string3=(null)
d)Compiler error
Answer Posted / ravi
answer a
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to define structures? ·
What do you understand by friend-functions? How are they used?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
What is a built-in function in C?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
Describe the difference between = and == symbols in c programming?
what is ur strangth & weekness
What is the explanation for prototype function in c?
Why & is used in c?
What is the Purpose of 'extern' keyword in a function declaration?
What is void c?
What are the advantages of external class?
What is the use of pointers in C?
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