Question Set

1. What do the following declaration signify? int ptr[30];





Ask Your Doubts Here

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

Comments

Show Similar Question And Answers
QA->What does the colour of the star signify?....
QA->What do the bright patches on Moon signify?....
QA->Third Philadelphia Congress was met in 1776 and it adopted the Declaration of Independence on?....
QA->The Declaration of American Independence was drafted by?....
QA->The First world war started by the declaration of war against Serbia by?....
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->What will be the output of the program? #include int fun(int ptr); int main() { int i=10; const int ptr = &i; fun(&ptr); return 0; } int fun(int ptr) { int j = 223; int temp = &j; printf("Before changing ptr = %5x\n", ptr); const ptr = temp; printf("After changing ptr = %5x\n", ptr); return 0; }....
MCQ->What will be the output of the program in TurboC? #include<stdio.h> int fun(int ptr); int main() { int i=10, j=20; const int ptr = &i; printf(" i = %5X", ptr); printf(" ptr = %d", ptr); ptr = &j; printf(" j = %5X", ptr); printf(" ptr = %d", ptr); return 0; }....
MCQ->What will be the output of the program? #include<stdio.h> #include<stdarg.h> void fun1(int num, ...); void fun2(int num, ...); int main() { fun1(1, "Apple", "Boys", "Cats", "Dogs"); fun2(2, 12, 13, 14); return 0; } void fun1(int num, ...) { char str; va_list ptr; va_start(ptr, num); str = va_arg(ptr, char ); printf("%s ", str); } void fun2(int num, ...) { va_list ptr; va_start(ptr, num); num = va_arg(ptr, int); printf("%d", num); }....
MCQ->What will be the output of the program? #include<stdio.h> int fun(int, int); typedef int (pf) (int, int); int proc(pf, int, int); int main() { printf("%d\n", proc(fun, 6, 6)); return 0; } int fun(int a, int b) { return (a==b); } int proc(pf p, int a, int b) { return ((p)(a, b)); }....
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 | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution