declare afunction pointer to int printf(char *)?
Answer / sunil singh
the function pointer to an int printf(char *) will be:
int (*ptr)(char*);
Now you can assign the function address to the pointer to a
function.
ptr = printf;
| Is This Answer Correct ? | 12 Yes | 1 No |
11. Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage
write an interactive program to generate the divisors of a given integer.
what are the files which are automatically opened when a c file is executed?
What is the difference between %d and %i?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
Explain the concept of "dangling pointers" in C.
What is meant by errors and debugging?
main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
What does emoji p mean?
write a program that uses point of sale system. which are mainly used by retail markets, where the is a database inventory list, a slip should be printed for the customer. manage should be able to access what has been sold and what is left from stock?