Dynamic allocations are identified by address. That means you will be using pointers whenever you use a dynamic allocation.
This applies to all of the scanf()-type functions.
Thanx for explaining me that; but i want to know that is it only for dynamic memeory allocations?
As in, in case of static memory allocations; we access it using its address ; and address is nothing but a pointer.
The scanf() functions require that you pass in the address of the variable where the data is to go. That means you either a) pass in the address ofg a local variable or b) dynamically allocate memory for the variable yourself and pass in the address of the allocation. scanf() istself does not do any allocating.
Here my point is; in your first case; i.e. when ur passing the address of local variable; thats also a pointer right?........ So ; if is it true that means scanf accesses dynamic locations?
I dont know whether m i right or not.
But address of anything is nothing but a pointer.
and second case is itself of dynamic allocation.