C Interview Questions
Questions Answers Views Company eMail

i=20,k=0; for(j=1;j


8 12047

int i =10 main() { int i =20,n; for(n=0;n<=i;) { int i=10 i++; } printf("%d", i);

HCL, SW, Octal,

6 13422

f=(x>y)?x:y a) f points to max of x and y b) f points to min of x and y c)error


4 3852

which of the function operator cannot be over loaded a) <= b)?: c)== d)*

Cisco, HCL, CTS, Google, HP,

10 23024

long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes

TCS, Intel, HCL, Acropolis,

18 28426

x=2,y=6,z=6 x=y==z; printf(%d",x)

TCS, Cisco, HCL, Bharat,

13 23668

int a=1,b=2,c=3; printf("%d,%d",a,b,c); What is the output?


14 17298

proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?


7 5090

int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]


6 7895

In scanf h is used for


4 8724

what does " calloc" do?

Cadence, Logos,

7 7810

what does exit() do?


3 6691

what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")

Cadence, Zen Technologies, JNTU,

7 8721

prototype of sine function.


2 5437

#define min((a),(b)) ((a)<(b))?(a):(b) main() { int i=0,a[20],*ptr; ptr=a; while(min(ptr++,&a[9])<&a[8]) i=i+1; printf("i=%d\n",i);}

3 10647

Post New C Questions

Un-Answered Questions { C }

what is the different bitween abap and abap-hr?


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }


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 concatenation the string using switch case?


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


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.


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year


What is the difference between declaring a variable by constant keyword and #define ing that variable?


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record


what is the structure pointer?