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 2279

"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 13007

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 7914




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 1968

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

TANCET,

2 2798

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

1 1872

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

839

how can i print "hello"

3 2706




difference between c and c++

3 2906

what is purpose of fflush(stdin) function

4 27135

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

Wipro,

4 8034

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

1 3578

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 2078

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

9 4228

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

5 4827


Post New C Questions






Un-Answered Questions { C }

show how link list can be used to repersent the following polynomial i) 5x+2

915


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

741


Which driver is a pure java driver

174


main() { static char *s[]={"black","white","yellow","voilet"}; char **ptr[]={s+3,s+2,s+1,s}, ***p; p=ptr; **++p; printf("%s",*--*++p+3); }

784


largest Of three Number using without if condition?

185






write a program to print largest number of each row of a 2D array

1136


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

696


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

924


write a program to generate address labels using structures?

1464


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

1819


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

1031


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

886


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

1088


what is uses of .net

510


Without Computer networks, Computers will be half the use. Comment.

986