C Interview Questions
Questions Answers Views Company eMail

what will be the output of the following program, justify? #define TEST int TEST getdata() { static i; i+=10; return i; } main() { int k; k = getdata(); }

3 2400

"I LOVE MY COUNTRY" write a c program to get "COUNTRY MY LOVE I" as the output. Use any other programming language. It is not mandatory to use C.

ADP, ABC Infotech, Kovair, College School Exams Tests,

11 14283

write a program to sum of its digit with using control structure or with out using loop. for ex: let the number is 25634 then answer will be=2+5+6+3+4=20

4 8047

what would be the output of the following prog? Justify your answer? main() { unsigned char ch; unsigned char i; ch = -255; printf("%d",ch); i = -1; printf("%d",i); }

1 2072

int x=5; printf("%d%d%d",x,x<<2,x>>2);


2 3037

how do we remove the printed character in printf statement and write next it it

1 1963

hi, which software companys will take,if d candidate's % is jst 55%?


how can i print "hello"

3 2826

difference between c and c++

3 3042

what is purpose of fflush(stdin) function

4 27759

how can i print "hello".please consider inverted commas as well.i want to print on console: "hello"


4 8322

how to compare two strings without using strcmp() function??

1 3686

how can i get the string which is having two spaces at the end.suppose the string is "Hello World ".Now at the end i have two spaces.i need to print with that spaces .

1 2133

what is the output for this question: main() { int i=1; printf("%d%d%d",i,i++,++i); }

9 4400

# define x=1+4; main() { int x; printf("%d%d",x/2,x/4); }

5 5136

Post New C Questions

Un-Answered Questions { C }

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)


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.


What is your favorite subject?


regarding pointers concept


how is the examination pattern?


write a c program in such a way that if we enter the today date the output should be next day's date.


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


Write a C program to count the number of email on text


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .


difference between native and cross compilers


p*=(++q)++*--p when p=q=1 while(q<=6)


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


what will be maximum number of comparisons when number of elements are given?


the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....