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

1401

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

Accenture, Vasutech,

2 3845

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

2269

What is C++

4 4168

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

1628

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 }

Facebook,

2712

How to add two numbers without using semicolon at runtime

2 6597

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

2 5552

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

1 2971

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

5 10106

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

5 6184

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.

1661

which operator is known as dummy operator in c?

Wipro,

2 11876

why array index always starts from zero??

TCS,

4 6109

all c language question

Wipro,

1873


Post New C Questions

Un-Answered Questions { C }

Who invented bcpl language?

705


I need previous papers of CSC.......plz help out by posting them.......

1818


What is calloc() function?

625


What is 02d in c?

637


Why is main function so important?

617






What is return type in c?

639


What is exit() function?

561


What are the two forms of #include directive?

644


What are 3 types of structures?

594


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

643


Write a program to swap two numbers without using a temporary variable?

611


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

606


How can I write a function that takes a format string and a variable number of arguments?

605


What are operators in c?

583


What is printf () in c?

578