C Interview Questions
Questions Answers Views Company eMail

PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

1454

writ a program to compare using strcmp VIVA and viva with its output.

1507

what is the diffrenet bettwen HTTP and internet protocol

1377

Write a program to produce the following output in c language? 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

2 4756

write a program that uses point of sale system. which are mainly used by retail markets, where the is a database inventory list, a slip should be printed for the customer. manage should be able to access what has been sold and what is left from stock?

1 2862

#include int main() { int i; for (i=0;i<3;++i) { fork();fork(); } } How many processes are created when running this program (including the initial one)? Explain ؟؟؟

4 4434

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 #include #include #include 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 ?????? */ }

1608

Consider the following C program. #include int main() { int i; for (i=0;i<3;++i) { fork();fork(); } } How many processes are created when running this program (including the initial one)? Explain

2 4267

about c language

1584

Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.

Convergys,

2633

what is c programming?

TCS,

3 4314

what is c++ programming?

TCS,

3 4105

write a program to read a number and print in words that is in sentence for example 21,219 then output is "twenty one thousand and two hundred nineteen" by using only control flow statements (only loops and switch case )?

TCS,

1 3131

How will you allocate memory to double a pointer?

1 3147

How will you find a duplicate number in a array without negating the nos ?

1629


Post New C Questions

Un-Answered Questions { C }

What is printf () in c?

570


write a program for the normal snake games find in most of the mobiles.

1772


What is a union?

595


What is the condition that is applied with ?: Operator?

652


What are the different types of errors?

631






What are keywords c?

588


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

638


What is C language ?

1514


Why static variable is used in c?

540


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1310


What are the complete rules for header file searching?

657


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1505


What is wild pointer in c?

590


Explain how can I make sure that my program is the only one accessing a file?

606


What are dangling pointers? How are dangling pointers different from memory leaks?

606