|
|
INTERVIEW QUESTIONS
LANGUAGES
C DETAILS
Question :
What is the draw back in using friend function in c++
|
|
|
Related Questions |
View Answer |
 |
In the following code, in which order the functions would be called? x = f1(23,14)*f2(12/4)+f3();
a) f1, f2, f3 b) f3, f2, f1 c) The order may vary from compiler to compiler d) None of the above
|
View Answer |
 |
What is the type of the variable b in the following declaration? #define FLOATPTR float* FLOATPTR a,b;
a) float b) float pointer c) int d) int pointer
|
View Answer |
 |
A switch statement cannot include
a) constants as arguments b) constant expression as arguments c) string as an argument d) None of the above
|
View Answer |
 |
What do you mean by normalisation of pointers
|
View Answer |
 |
How to convert Stack in to Queue and v varsa ? c with data structure.
|
View Answer |
 |
What would be the output of the following program? main() { const int x=5; int *ptrx; ptrx=&x; *ptrx=10; printf("%d",x); }
|
View Answer |
 |
According to ANSI specifications which is the correct way of declaring main() when it receives command line arguments?
|
View Answer |
 |
Would the following program compile?
main() { int a=10,*j; void *k; j=k=&a; j++; k++; printf("n%u%u",j,k); }
|
View Answer |
 |
If the following program (myprog) is run from the command line as myprog friday tuesday sunday, What would be the output?
main(int argc, char *argv[]) { printf("%c",*++argv[1]); }
|
View Answer |
 |
If the following program (myprog) is run from the command line as myprog friday tuesday sunday, What would be the output?
main(int argc, char*argv[]) { printf("%c",**++argv); }
|
View Answer |
Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.
| Notify me when better answer is posted!
|
View ALL C Interview Questions
|
|
|