1. Is there any difference in the following declarations? int myfun(int arr[]);int myfun(arr[20]);



Write Comment

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

Tags
Show Similar Question And Answers
QA->A temperature difference of 25°C is equivalent to a temperature difference of how many F?....
QA->A temperature difference of 25°C is equivalent to a temperature difference of howmany F?....
QA->Any industry located in a rural area which produces any goods or renders any service with or without the use of power and in which the fixed capital investment per head of a worker does not exceed one lakh rupees is known as:....
QA->If any doubt arises as to whether the rules in KSR would apply to any person, the matter will be decided by:....
QA->A state may raise any loan without any restriction:....
MCQ->What will be the output of the program ? #include<stdio.h> int main() { static int arr[] = {0, 1, 2, 3, 4}; int p[] = {arr, arr+1, arr+2, arr+3, arr+4}; int ptr=p; ptr++; printf("%d, %d, %d\n", ptr-p, ptr-arr, ptr); ptr++; printf("%d, %d, %d\n", ptr-p, ptr-arr, ptr); ++ptr; printf("%d, %d, %d\n", ptr-p, ptr-arr, ptr); ++ptr; printf("%d, %d, %d\n", ptr-p, ptr-arr, ptr); return 0; }....
MCQ->Is there any difference in the following declarations? int myfun(int arr[]);int myfun(arr[20]);....
MCQ->What will be the output of the program ? #include<stdio.h> int main() { void fun(int, int[]); int arr[] = {1, 2, 3, 4}; int i; fun(4, arr); for(i=0; i<4; i++) printf("%d,", arr[i]); return 0; } void fun(int n, int arr[]) { int p=0; int i=0; while(i++ < n) p = &arr[i]; p=0; }....
MCQ->What will be the output of the following program? #include<iostream.h> struct IndiaBix { int arr[5]; public: void BixFunction(void); void Display(void); }; void IndiaBix::Display(void) { for(int i = 0; i < 5; i++) cout<< arr[i] << " " ; } void IndiaBix::BixFunction(void) { static int i = 0, j = 4; int tmp = arr[i]; arr[i] = arr[j]; arr[j] = tmp ; i++; j--; if(j != i) BixFunction(); } int main() { IndiaBix objBix = {{ 5, 6, 3, 9, 0 }}; objBix.BixFunction(); objBix.Display(); return 0; }....
MCQ->What will be the output of the following program? #include<iostream.h> struct BixArray { int arr[5]; public: void BixFunction(); void Display(); }; void BixArray::BixFunction() { static int i = 0, j = 4; i++; j--; if(j > 0) BixFunction(); int tmp = arr[i]; arr[i] = arr[j]; arr[j] = tmp; i--; j++; } void BixArray::Display() { for(int i = 0; i < 5; i++) cout<< arr[i] << " "; } int main() { BixArray objArr = {{5, 6, 3, 9, 0}}; objArr.BixFunction(); objArr.Display(); return 0; }....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use
DMCA.com Protection Status Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions