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.

Aricent,

4 5412

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 10869

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

3 9161




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 8899

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

3 5045

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 7901

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 6219

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

7 5703




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

Accenture, TCS,

9 9989

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 48886

in iso what are the common technological language?

971

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

NetApp, Wipro, PTU,

1 5098

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

Wipro,

3 11001

Add 2 64 bit numbers on a 32 bit machine

NetApp, Hyderabad Central University, EMC,

3 14546

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

9 29580


Post New C Questions






Un-Answered Questions { C }

can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

755


how to create duplicate link list using C???

1320


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

2057


int i=10; printf("%d %d %d", i, i=20, i);

257


Stimulate calculator using Switch-case-default statement for two numbers

1807






WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1165


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1096


How to delete a node from linked list w/o using collectons?

1414


what are the facialities provided by you after the selection of the student.

1009


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

1026


why return type of main is not necessary in linux

1022


hi any body pls give me company name interview conduct "c" language only

889


write a program to find out prime number using sieve case?

902


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

1783


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

909