Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous

What will happen when we use void in argument passing?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • It will not return value to its caller

Related Computer Questions

What is the output of the following program? #include<stdio.h> int longest_inc_sub(int *arr, int len) { int i, j, tmp_max; int LIS[len]; // array to store the lengths of the longest increasing subsequence LIS[0]=1; for(i = 1; i < len; i++) { tmp_max = 0; for(j = 0; j < i; j++) { if(arr[j] < arr[i]) { if(LIS[j] > tmp_max) tmp_max = LIS[j]; } } LIS[i] = tmp_max + 1; } int max = LIS[0]; for(i = 0; i < len; i++) if(LIS[i] > max) max = LIS[i]; return max; } int main() { int arr[] = {10,22,9,33,21,50,41,60,80}, len = 9; int ans = longest_inc_sub(arr, len); printf("%d",ans); return 0; } The length of MAC address is ___________? Which of the following can be called a parallel array implementation? Which operation in a B-Tree involves redistributing keys between nodes to maintain balance? What will be the output of the following C code? #include <stdio.h> int main() { int y = 1; if (y & (y = 2)) printf("true %d\n", y); else printf("false %d\n", y); }