C Interview Questions
Questions Answers Views Company eMail

a program that can input number of records and can view it again the record



What is the output of below code? main() { static in a=5; printf("%3d",a--); if(a) main(); }

TCS, Infosys,

4 3945

What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main(); }

1 2518

main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }

6 5972

write a c program to add two integer numbers without using arithmetic operator +

Value Labs,

13 13872

is c language is a object oreinted language?


5 2991

wat is the meaning of c?

IBM, Wipro, CTS,

9 4726

define switch statement?


6 4058

The variables are int sum=10,SuM=20; these are same or different?

3 2465

what is the output of below code int x=8,y; x>>=2; y=x; what is y value. NOTE:EXPLANATION IS COMPALSARY with binary bits


2 2734

write a c program to print the next of a particular no without using the arithmetic operator or looping statements?


1 2200

shorting algorithmS





4 3559





CTS, Wipro,

3 3810

Post New C Questions

Un-Answered Questions { C }

what is ur strangth & weekness


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion


A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?


how to execute a program using if else condition and the output should enter number and the number is odd only...


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent


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.


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??


The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.


Write a C program linear.c that creates a sequence of processes with a given length. By sequence it is meant that each created process has exactly one child. Let's look at some example outputs for the program. Here the entire process sequence consists of process 18181: Sara@dell:~/OSSS$ ./linear 1 Creating process sequence of length 1. 18181 begins the sequence. An example for a sequence of length three: Sara@dell:~/OSSS$ ./linear 3 Creating process sequence of length 3. 18233 begins the sequence. 18234 is child of 18233 18235 is child of 18234 ........ this is coad .... BUt i could not compleate it .....:( #include #include #include #include int main(int argc, char *argv[]) { int N; pid_t pid; int cont; if (argc != 2) { printf("Wrong number of command-line parameters!\n"); return 1; } N = atoi(argv[1]); printf("Creating process sequence of length %d.\n",N); printf("%d begins the sequence.\n",getpid()); /* What I have to do next ?????? */ }


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


What is the code for 3 questions and answer check in VisualBasic.Net?