What is the output of the program?#include void main(){char buffer[10] = {"Genesis"};printf(" %d ", &buffer[4]- (buffer));}A. 3B. 4C. 0D. Illegal pointer subtraction
B
A structure pointer is defined of the type time. With 3 fields min, sec hours having pointers to integers.Write the way to initialize the 2nd element to 10.
QUESTION 8In the above question an array of pointers is declared.Write the statement to initialize the 3rd element of the 2 element to 10;
int (*f)(),int* f()
What does the following statement mean?Int (*a)[4]A. 'a' is a pointer to an array of 4 integersB. 'a' is an array of pointers to integerC. 'a' is a pointer to function returning an integer
A
int (*f)(),int* f();
How to pass two arguments to a function prompted to by function pointer
A. g -> (1,2)
B. *g(1,2)
C. (*g)(1,2)
D. g(1,2)
C
Nse it papers NSEIT Campus Paper1) Then, difference b/w char *str = "Hello"; char arr[] = "Hello"; he started asking whether following statements get complied or not; arr++; // ERROR..its like a pointer constant *(arr + 1) = 's'; cout
One pointer diff is given like this:int *(*p[10])(char *)Explain the variable assignmentIn the following code;#includemain(){FILE *fp;fp= fopen("trial","r");} fp points to:a) The first character in the file. b) A structure which contains a "char" pointer which points to the first character in the file.c) The name of the file. d) None of the above.
View page << Previous 7 8 9 10 [11]

Go Top