C Interview Questions
Questions Answers Views Company eMail

main() { clrscr(); } clrscr();

ME, Wipro,

6 8937

enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }


4 9423

void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }

ME, pspl,

3 20987

main() { int i=400,j=300; printf("%d..%d"); }


13 14404

main() { char *p; p="Hello"; printf("%c\n",*&*p); }


2 9743

main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }


3 8561

void main() { int i=5; printf("%d",i++ + ++i); }


21 22939

void main() { int i=5; printf("%d",i+++++i); }


17 12028

#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }


6 8963

what is the maximum no. of bytes calloc can allocate


4 6356

how does the for loop work actually..suppose for the following program how it ll work plz explain to me for(i=5;i>=0;i--) prinf(i--);


19 12552

what is the use of using linked list and array?

Infosys, TCS,

10 8176

What is the diffences between Windows XP and Windows Visa

Aricent, FHF,

1 5583

The differences between Windows XP and Windows Visa


8 6210

why should i select you?


21 13356

Post New C Questions

Un-Answered Questions { C }

what are the facialities provided by you after the selection of the student.


how to capitalise first letter of each word in a given string?


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 }


using for loop sum 2 number of any 4 digit number in c language


What is ambagious result in C? explain with an example.


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


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?


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......


pierrot's divisor program using c or c++ code


what is the different bitween abap and abap-hr?


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


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 to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix


a c code by using memory allocation for add ,multiply of sprase matrixes


why we wont use '&' sing in aceesing the string using scanf