What are function pointers? Provide an example.
Answer / nashiinformaticssolutions
Pointers to functions that allow dynamic invocation of functions. Example:
void (*funPtr)(int) = &printNumber;
| Is This Answer Correct ? | 0 Yes | 0 No |
Is c is a procedural language?
study the code: #include<stdio.h> void main() { const int a=100; int *p; p=&a; (*p)++; printf("a=%dn(*p)=%dn",a,*p); } What is printed? A)100,101 B)100,100 C)101,101 D)None of the above
who is the father of c
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
Is r written in c?
What is calloc malloc realloc in c?
What is c mainly used for?
what is the size of an integer variable?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
main() { static char *s[]={"black","white","yellow","voilet"}; char **ptr[]={s+3,s+2,s+1,s}, ***p; p=ptr; **++p; printf("%s",*--*++p+3); }
What do you mean by a local block?
What is volatile variable how do you declare it?