Pointers and Arrays on C related Questions and Answers

Question 3 : In linux, argv[0] by command-line argument can be occupied by _________
1. ./a.out
2. ./test
3. ./fun.out.out
4. all of the mentioned
View Answer   Discuss with Members

Question 4 : What is the syntax for constant pointer to address (i.e., fixed pointer address)?
1. const <type> * <name>
2. <type> * const <name>
3. <type> const * <name>
4. none of the mentioned
View Answer   Discuss with Members

Question 5 : 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 6 : Calling a function f with a an array variable a[3] where a is an array, is equivalent to __________
1. f(a[3])
2. f(*(a + 3))
3. f(3[a])
4. all of the mentioned
View Answer   Discuss with Members

Question 7 : Arguments that take input by user before running a program are called?
1. main function arguments
2. main arguments
3. Command-Line arguments
4. Parameterized arguments
View Answer   Discuss with Members

Question 8 : Which of following logical operation can be applied to pointers?
(Assuming initialization int *a = 2; int *b = 3;)
1. a | b
2. a ^ b
3. a & b
4. None of the mentioned
View Answer   Discuss with Members

Question 9 : What is the correct syntax to send a 3-dimensional array as a parameter? (Assuming declaration int a[5][4][3];)
1. func(a);
2. func(&a);c) func(*a);d) func(**a);
3.
4.
View Answer   Discuss with Members

Question 10 : How many number of pointer (*) does C have against a pointer variable declaration?
1. 7
2. 127
3. 255
4. No limits
View Answer   Discuss with Members


View 1 - 10 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