How many parameters should a function have?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

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 <stdio.h> #include <sys/types.h> #include <unistd.h> #include <stdlib.h> int main(int argc, char *argv[]) { int N; pid_t pid; int cont; if (argc != 2) { printf("Wrong number of command-line parameters!\n"); return 1; } N = atoi(argv[1]); printf("Creating process sequence of length %d.\n",N); printf("%d begins the sequence.\n",getpid()); /* What I have to do next ?????? */ }

0 Answers  


What is a structure in c language. how to initialise a structure in c?

0 Answers  


What is function definition in c?

0 Answers  


What are the types of variables in c?

0 Answers  


What are the keywords in c?

0 Answers  


What is && in c programming?

0 Answers  


What is the use of volatile?

0 Answers  


What is zero based addressing?

0 Answers  


what do the 'c' and 'v' in argc and argv stand for?

0 Answers   TISL,


program to get the remainder and quotant of given two numbers with out using % and / operators?

10 Answers   College School Exams Tests, IBM,


void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y); }

5 Answers  


write a program to print the one dimensional array.

1 Answers  


Categories