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

C Interview Questions

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 total number of disk writes by MySQL

967

write a program to find the given number is prime or not

2930

HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

1845

What is C++

2727

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

1196

You have given 2 array. You need to find whether they will create the same BST or not. For example: Array1:10 5 20 15 30 Array2:10 20 15 30 5 Result: True Array1:10 5 20 15 30 Array2:10 15 20 30 5 Result: False One Approach is Pretty Clear by creating BST O(nlogn) then checking two tree for identical O(N) overall O(nlogn) ..we need there exist O(N) Time & O(1) Space also without extra space .Algorithm ?? DevoCoder guest Posted 3 months ago # #define true 1 #define false 0 int check(int a1[],int a2[],int n1,int n2) { int i; //n1 size of array a1[] and n2 size of a2[] if(n1!=n2) return false; //n1 and n2 must be same for(i=0;ia1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }

2282

How to add two numbers without using semicolon at runtime

5623

how to write a program which adds two numbers without using semicolon in c

4775

void main() { for(; 0 ;) ... { printf("hello"); ... } getch(); }

2279

which of 'arrays' or 'pointers' are faster?

7454

void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y); }

4837

1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.

1240

which operator is known as dummy operator in c?

9490

why array index always starts from zero??

TCS,

4567

all c language question

1355

What is the difference between far and near ?

212

Why do we use namespace feature?

176

Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol

219

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

1630

What is FIFO?

213

Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

1340

What is variable declaration and definition in c?

133

Write a C program in Fibonacci series.

213

What is the Purpose of 'extern' keyword in a function declaration?

206

What are the preprocessor categories?

174

How important is structure in life?

176

Why is c faster?

157

Can main () be called recursively?

186

Explain union.

177

What is the difference between %d and %i?

171