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 4079

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

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

11 31146

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 9766

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 2984

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

TANCET,

2 5052

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

1 2889

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

1644

how can i print "hello"

3 4442

difference between c and c++

3 4648

what is purpose of fflush(stdin) function

4 30788

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

Wipro,

4 10789

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

1 4681

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 3092

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

9 7901

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

5 7789


Post New C Questions

Un-Answered Questions { C }

What are the advantages of c preprocessor?

694


What are the advantages of using new operator as compared to the function malloc ()?

740


What is nested structure?

562


What is a shell structure examples?

578


Explain about block scope in c?

650






what are the different storage classes in c?

650


What is wrong with this declaration?

600


Is fortran still used today?

590


Define and explain about ! Operator?

603


What is #include stdio h?

669


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜nā€™ element.

1567


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

1768


where are auto variables stored? What are the characteristics of an auto variable?

574


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

966


Explain do array subscripts always start with zero?

741