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

706

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

Accenture, Vasutech,

2 2430

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

1557




What is C++

4 2100

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

908

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,

1956

How to add two numbers without using semicolon at runtime

2 5200

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

2 4320




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

1 1873

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

5 5633

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

5 3777

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.

946

which operator is known as dummy operator in c?

Wipro,

2 7636

why array index always starts from zero??

TCS,

4 3901

all c language question

Wipro,

1061


Post New C Questions






Un-Answered Questions { C }

please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

639


regarding pointers concept

847


if p is a string contained in a string?

728


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

1442


why wipro wase

1098






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

2258


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

788


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

592


Hai what is the different types of versions and their differences

829


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

4483


how to find binary of number?

1902


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

817


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1100


simple program of graphics and their output display

802


`write a program to display the recomended action depends on a color of trafic light using nested if statments

930