C Interview Questions
Questions Answers Views Company eMail

To what value are pointers initialized? 1) NULL 2) Newly allocated memory 3) No action is taken by the compiler to initialize pointers.


4 5300

Which of the following sorts is quickest when sorting the following set: 1 2 3 5 4 1) Quick Sort 2) Bubble Sort 3) Merge Sort

7 10650

Which of the following data structures is on average the fastest for retrieving data: 1) Binary Tree 2) Hash Table 3) Stack

3 8985

Evaluate the following: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); 1) 10 2) 11 3) 1

6 8596

What character terminates all strings composed of character arrays? 1) 0 2) . 3) END

3 4945

True or false: If you continuously increment a variable, it will become negative? 1) True 2) False 3) It depends on the variable type

7 7767

Which of the following is not a valid declaration for main ()? 1) int main() 2) int main(int argc, char *argv[]) 3) They both work

2 6116

Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ 3) char x=12;

7 5612

void swap(int a,int b) { a=a+b; b=a-b; a=a-b; } in this code always gives the same result for all case

TCS, Accenture,

9 9775

if a five digit number is input through the keyboard, write a program to calculate the sum of its digits. (hint:-use the modulus operator.'%')

23 47733

in iso what are the common technological language?


Write a program or provide a pseudo code to flip the 2nd bit of the 32 bit number ! (Phone Screen)

Wipro, NetApp, PTU,

1 5041

what is the diff b/w static and non static variables in C. Give some examples plz.


3 10774

Add 2 64 bit numbers on a 32 bit machine

NetApp, EMC, Hyderabad Central University,

3 14471

Write a program to accept a character & display its corrosponding ASCII value & vice versa?

9 29195

Post New C Questions

Un-Answered Questions { C }

Sir i need notes for structure,functions,pointers in c language can you help me please


write a program in c language to print your bio-data on the screen by using functions.


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.


c program to compute AREA under integral


Which driver is a pure java driver


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list


int far *near * p; means


which is an algorithm for sorting in a growing Lexicographic order


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?


simple program of graphics and their output display


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);


what is the role you expect in software industry?