C Interview Questions
Questions Answers Views Company eMail

Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.



Go through this linked list concept.While traversing through the singly linked list sometimes the following code snippet "while(head != NULL)" is used and other times "while(head->link != NULL)"is used(Here head is the pointer pointing to the first node,node has two parts data part and link part).What is the difference between head != NULL and Head->link != NULL and in which situation are they used?


1 1851

Which weighs more, a gram of feathers or a gram of gold?

2 2652

There are 8 billiard balls, and one of them is slightly heavier, but the only way to tell was by putting it on a weighing scale against another. What's the fewest number of times you'd have to use the scale to find the heavier ball?

Microsoft, TCS,

5 4993

I didn't count the ducks that I saw in line, but I do remember that one duck was in front of two ducks, another duck behind two ducks. How many ducks did I see?

2 4136

program in c to print 1 to 100 without using loop


9 5846

. Write a program to get a string and to convert the 1st letter of it to uppercase


2 3884

what is a function method?give example?


Code for calculating square root without using library function, of math.h


4 22212

main() { int a; a=++100; printf("%d",a); getch(); }

4 2384

print the palindrome numbers in between 0 to n

1 1912

write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.



write a c program that if the given number is prime, and their rearrangement(permute) of that number is also prime. Ex: Input is "197" is prime Output: 791,917,179 is also prime. Please any one tell me tha code for that

3 2731

void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25


Post New C Questions

Un-Answered Questions { C }

You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.


application attempts to perform an operation?


write a c program for swapping two strings using pointer


in iso what are the common technological language?


Calculate 1*2*3*____*n using recursive function??


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.


A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?


find out largest elemant of diagonalmatrix


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...


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


int far *near * p; means


Which driver is a pure java driver


A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?


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