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

629

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

Accenture, Vasutech,

2 2283

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

1465




What is C++

4 1958

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

810

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,

1849

How to add two numbers without using semicolon at runtime

2 5063

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

2 4173




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

1 1753

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

5 5253

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

5 3554

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.

832

which operator is known as dummy operator in c?

Wipro,

2 7178

why array index always starts from zero??

TCS,

4 3744

all c language question

Wipro,

964


Post New C Questions






Un-Answered Questions { C }

what is use of malloc and calloc?

603


what is the basis for selection of arrays or pointers as data structure in a program

2968


Write a program that accept anumber in words

466


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

1088


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

1222






hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

851


Which is the memory area not included in C program? give the reason

748


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

822


How to establish connection with oracle database software from c language?

892


if p is a string contained in a string?

656


write a program to create a sparse matrix using dynamic memory allocation.

3434


write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

782


how could explain about job profile

703


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

826


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

2127