Pointers and Arrays on C related Questions and Answers - Page 4

Question 31 : A program that has no command line arguments will have argc _________
1. Zero
2. Negative
3. One
4. Two
View Answer   Discuss with Members

Question 32 : What does argc and argv indicate in command-line arguments?
(Assuming: int main(int argc, char *argv[]) )
1. argument count, argument variable
2. argument count, argument vector
3. argument control, argument variable
4. argument control, argument vector
View Answer   Discuss with Members

Question 34 : Which of the following declaration will result in run-time error?
1. int **c = &c;
2. int **c = &*c;
3. int **c = **c;
4. none of the mentioned
View Answer   Discuss with Members

Question 35 : Which of the following is a correct syntax to pass a Function Pointer as an argument?
1. void pass(int (*fptr)(int, float, char)){}
2. void pass(*fptr(int, float, char)){}
3. void pass(int (*fptr)){}
4. void pass(*fptr){}
View Answer   Discuss with Members

Question 36 : Which of the following arithmetic operation can be applied to pointers a and b?
(Assuming initialization as int *a = (int *)2; int *b = (int *)3;)
1. a + b
2. a – b
3. a * b
4. a / b
View Answer   Discuss with Members

Question 39 : Which is an indirection operator among the following?
1. &
2. *
3. ->
4. .
View Answer   Discuss with Members


View 31 - 40 of 53 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter