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

Question 21 : 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 22 : Which of the following operation is possible using a pointer char? (Assuming the declaration is char *a;)
1. Input via %s
2. Generation of the multidimensional array
3. Changing address to point at another location
4. All of the mentioned
View Answer   Discuss with Members

Question 23 : What is the advantage of a multidimensional array over pointer array?
1. Predefined size
2. Input can be taken from user
3. Faster Access
4. All of the mentioned
View Answer   Discuss with Members

Question 24 : Which of the following is the correct syntax to send an array as a parameter to function?
1. func(&array);
2. func(#array);
3. func(*array);
4. func(array[size]);
View Answer   Discuss with Members

Question 25 : 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 26 : What type of array is generally generated in Command-line argument?
1. Single dimension array
2. 2-Dimensional Square Array
3. Jagged Array
4. 2-Dimensional Rectangular Array
View Answer   Discuss with Members

Question 27 : What is the size of *ptr in a 32-bit machine (Assuming initialization as int *ptr = 10;)?
1. 1
2. 2
3. 4
4. 8
View Answer   Discuss with Members

Question 28 : What are the different ways to initialize an array with all elements as zero?
1. int array[5] = {};
2. int array[5] = {0};
3.

   int a = 0,  b = 0,  c = 0;   int array[5] = {a, b, c};

4. All of the mentioned
View Answer   Discuss with Members

Question 30 : What is the maximum number of arguments that can be passed in a single function?
1. 127
2. 253
3. 361
4. No limits in number of arguments
View Answer   Discuss with Members


View 21 - 30 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