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 2233

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

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 7851

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 1907

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


2 2719

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

1 1838

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


how can i print "hello"

3 2648

difference between c and c++

3 2844

what is purpose of fflush(stdin) function

4 26840

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


4 7896

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

1 3525

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 2030

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

9 4157

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

5 4687

Post New C Questions

Un-Answered Questions { C }

about c language


hi any body pls give me company name interview conduct "c" language only


which type of aspect you want from the student.


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)


what is event driven software and what is procedural driven software?


what is the diffrenet bettwen HTTP and internet protocol


Between macros and functions,which is better to use and why?


hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.


Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer


write a programming in c to find the sum of all elements in an array through function.


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


write a program to find out prime number using sieve case?