main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / vinay
Idiots please don't give wrong answers. While you answer
the questions, please check the output practically and post
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What are the different types of errors?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
What are the 5 elements of structure?
With the help of using classes, write a program to add two numbers.
What is volatile, register definition in C
why we wont use '&' sing in aceesing the string using scanf
What are the types of pointers?
Is it fine to write void main () or main () in c?
What is openmp in c?
how do you execute a c program in unix.
What is the meaning of ?
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
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
Is it cc or c in a letter?
#include