C interview questions – page 4
2,130 questions. Tap “Show answer” to check yourself.
-
why java is called as a purely oops language.
-
difference between my-strcpy and strcpy ?
-
Write a program to exchange two variaables without temp
-
Define function ?Explain about arguments?
-
C passes By value or By reference?
-
f() { int a=2; f1(a++); } f1(int c) { printf("%d", c); } c=?
-
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?
-
What does the message "warning: macro replacement within a string literal" mean?
-
AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?
-
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=?
-
How does free() know how many bytes to free?
-
What's the difference between calloc() and malloc()?
- Advertisement
-
When you call malloc() to allocate memory for a local pointer, do you have to explicitly free() it?
-
What does a run-time "null pointer assignment" error mean?
-
what is meant by the "equivalence of pointers and arrays" in C?
-
How do I declare a pointer to an array?
-
How can I set an array's size at run time?
-
What's a "sequence point"?
-
Why doesn't the code "int a = 1000, b = 1000; long int c = a * b;" work?
-
What's wrong with "char *p; *p = malloc(10);"?
-
I have a function which accepts, and is supposed to initialize,a pointer, but the pointer in the caller remains unchanged.
-
I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?
-
Can I pass constant values to functions which accept structure arguments?
-
Why doesn't the code "a[i] = i++;" work?
- Advertisement
-
What is the difference between char a[] = "string"; and char *p = "string"; ?
-
How do I initialize a pointer to a function?
-
What's the difference between struct x1 { ... }; and typedef struct { ... } x2; ?
-
What does extern mean in a function declaration?
-
How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
-
What's wrong with "char *p = malloc(10);" ?