User Profile
Collapse
-
can u be more specific as to what you want to do? -
First of all you need to allocate memory to p as,
p = (int **) ....., and not as
p = (int *).....
as p is double pointer.
Regarding the size,
size of p is 4 bytes,
size of *p is also 4 bytes, as both are pointers,
But size of **p is the size of the integer that your hardware supports....Leave a comment:
-
Pointers are constructs that point to the address location of a particular data type. Ofcourse, pointers also need to have data types associated with them, i.e. while declaring we have to define the data type of the pointer, for e.g.
int * p;
char * p1;
but the pointer is just pointing to the memory location, which holds the particular variable. So by just changing the reference of the...Leave a comment:
-
-
try executing the following code,
Code:#include <stdio.h> int main() { while(1) { if(printf("%d",printf("%d "))) break; else continue; } return 0; }
Leave a comment:
No activity results to display
Show More
Leave a comment: