where do we use structure pointer?
Answer / naveen shukla
we uses structure pointer when we have to point to the whole
object and we can access all the values of the data in the
object.
when we want to keep the reference of the structure variable
| Is This Answer Correct ? | 2 Yes | 0 No |
Suppose I want to write a function that takes a generic pointer as an argument and I want to simulate passing it by reference. Can I give the formal parameter type void **, and do something like this? void f(void **); double *dp; f((void **)&dp);
WHAT IS HEADER?
main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
what is the height of tree if leaf node is at level 3. please explain
How can we allocate array or structure bigger than 64kb?
What is true about the following C Functions a.Need not return any value b.Should always return an integer c.Should always return a float d.Should always return more than one value.
Tell me when would you use a pointer to a function?
Explain what are its uses in c programming?
What is difference between main and void main?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
#include<stdio.h> main(0 { printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3)); }
write a reverse string to print a stars.(with out using logic) ***** **** *** ** *