Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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.

IBM,

1109

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?

Oracle,

1 2271

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

2 3223

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 6265

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 4792

program in c to print 1 to 100 without using loop

Wipro,

9 7255

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

HTC,

2 4584

what is a function method?give example?

1507

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

IBM,

4 24530

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

4 3227

print the palindrome numbers in between 0 to n

1 2384

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.

TCS,

1172

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 3595

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

1698

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

1104


Post New C Questions






Un-Answered Questions { C }

What standard functions are available to manipulate strings?

223


Why ca not I do something like this?

233


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

221


Why doesnt that code work?

240


If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

1184






What does calloc stand for?

207


What is spaghetti programming?

252


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

1706


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

253


Do you know pointer in c?

230


Describe the header file and its usage in c programming?

213


what will be the output for the following main() { printf("hi" "hello"); }

6679


struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

266


write a c program to find the sum of five entered numbers using an array named number

1248


What is the difference between declaring a variable and defining a variable?

266