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 2139

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

10 11312

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 7752

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 1818

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


2 2557

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

1 1768

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


how can i print "hello"

3 2560

difference between c and c++

3 2766

what is purpose of fflush(stdin) function

4 25918

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


4 7647

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

1 3453

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 1954

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

9 3996

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

5 4451

Post New C Questions

Un-Answered Questions { C }

ATM machine and railway reservation class/object diagram


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given


Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc


write a program to rearrange the array such way that all even elements should come first and next come odd


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical


what is the diffrenet bettwen HTTP and internet protocol


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.


Why is event driven programming or procedural programming, better within specific scenario?


write a program to concatenation the string using switch case?


what type of questions arrive in interview over c programming?


number of times a digit is present in a number