C Interview Questions
Questions Answers Views Company eMail

Write a c pgm for leap year

IBM, TCS, College School Exams Tests,

11 10709

c pgm count no of lines , blanks, tabs in a para(File concept)

2 4944

What is the difference function call by value & function call by reference?

6 4503




What is the difference b/w Structure & Class?

3 2755

What is the difference b/w Structure & Union?

3 3935

What is the difference b/w Structure & Array?

6 4240

difference between malloc and calloc

Wipro,

3 5820

A stack can be implemented only using array?if not what is used?

InterGlobal,

3 3191




Whether there can be main inside another main?If so how does it work?

Sail, Wipro,

14 13173

Program to find larger of the two numbers without using if-else,while,for,switch

Wipro, iNautix,

11 16239

what is linkage error when it occurs in c program

3 8889

what is difference between array,strutter,union and pointers

CTS, Mannar Company, Lovely Professional University,

3 27086

ratio,age,persentage

820

please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

746

what is the difference between i++ and ++i?

5 4761


Post New C Questions






Un-Answered Questions { C }

C program to find all possible outcomes of a dice?

1166


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures

2008


2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

1790


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

658


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

930






how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

755


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

861


how do you programme Carrier Sense Multiple Access

811


what is the basis for selection of arrays or pointers as data structure in a program

2998


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

680


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

688


4. main() { int c=- -2; printf("c=%d",c); }

556


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1086


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

883


Is Exception handling possible in c language?

821