C Interview Questions
Questions Answers Views Company eMail

What does the message "warning: macro replacement within a string literal" mean?

1 1639



13 9764

a=0; b=(a=0)?2:3; a) What will be the value of b? why b) If in 1st stmt a=0 is replaced by -1, b=? c) If in second stmt a=0 is replaced by -1, b=?

Geometric Software,

6 6937

f() { int a=2; f1(a++); } f1(int c) { printf("%d", c); } c=?

Geometric Software,

7 5706

f1() { f(3);} f(int t) { switch(t); { case 2: c=3; case 3: c=4; case 4: c=5; case 5: c=6; default: c=0;} value of c?

Geometric Software,

5 5907

Define function ?Explain about arguments?

Geometric Software,

2 4759

C passes By value or By reference?

Geometric Software,

5 5498

difference between my-strcpy and strcpy ?

Geometric Software, IIM,

3 9010

What compilation do?

Geometric Software,

7 4755

Write a program to exchange two variaables without temp

Geometric Software,

9 6152

why java is called as a purely oops language.


3 5016

macros and function are related in what aspect? a)recursion b)varying no of arguments c)hypochecking d)type declaration

HCL, Microsoft, Infosys,

12 21899

enum day = { jan = 1 ,feb=4, april, may} what is the value of may? a)4 b)5 c)6 d)11 e)none of the above

HCL, Wipro,

8 26040

2.main { int x,j,k; j=k=6;x=2; x=j*k; printf("%d", x);

HCL, Tech Mahindra,

8 13778

fn f(x) { if(x<=0) return; else f(x-1)+x; }


5 10032

Post New C Questions

Un-Answered Questions { C }

what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555


Write a C program linear.c that creates a sequence of processes with a given length. By sequence it is meant that each created process has exactly one child. Let's look at some example outputs for the program. Here the entire process sequence consists of process 18181: Sara@dell:~/OSSS$ ./linear 1 Creating process sequence of length 1. 18181 begins the sequence. An example for a sequence of length three: Sara@dell:~/OSSS$ ./linear 3 Creating process sequence of length 3. 18233 begins the sequence. 18234 is child of 18233 18235 is child of 18234 ........ this is coad .... BUt i could not compleate it .....:( #include #include #include #include int main(int argc, char *argv[]) { int N; pid_t pid; int cont; if (argc != 2) { printf("Wrong number of command-line parameters!\n"); return 1; } N = atoi(argv[1]); printf("Creating process sequence of length %d.\n",N); printf("%d begins the sequence.\n",getpid()); /* What I have to do next ?????? */ }


how do you programme Carrier Sense Multiple Access


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


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


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?


what is used instead of pointers in java than c?


the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321


number of times a digit is present in a number


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.


write a c program to find largest of three numbers using simple if only for one time.


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays