How do you declare the following:
An array of three pointers to chars
An array of three char pointers
A pointer to array of three chars
A pointer to function which receives an int pointer and returns a float pointer
A pointer to a function which receives nothing and returns nothing
Integer pointer
Integer pointertypedef Is not the same as #define, meaning typedef does not make sure text is replaced before the compiler kicks in. It's a type definition, meaning everything declared as ptr will be an integer pointer. ...
pointer are used in c as a new memory is allocate every time a variable are method is created so we use call by refference (&name) and (*name will use the address location), in java memory management is taken care by GC. ...
Delegate to function--- is same as---- pointer to object.Delegates are function pointers.They are used when the function which needs to be called is not know at compile time.Pointers, on the other hand, are used to point to variables or object references ...
NULL pointer says that it is not pointing to any object, but a VOID pointer says that it can point to any object. ...
No ,its not possible to have a dynamic array without using calloc,malloc or without ptr.... Why u want to know abt it? but u can achieve a array without specifying size say arr[]; but its not efficient as when u use this array..more space will ...
I just want to make a small point.When you assign an array to a pointer, you can't put an & signint arr[5]={1,2,3},*p1;p1=arr;This will workint arr[5]={1,2,3},*p1; p1=&arr; error: cannot convert `int (*)[5]' to `int*' in assignmentThis ...
Pointers to functions concept is used in C programming language in various instances. One of the common instance in which programmers use pointers to function concept is for passing pointers to a function as the name implies.For example the below declares ...
4bytes ...
Int *a[5] refers toA. array of pointersB. pointer to an arrayC. pointer to a pointerD. none of these
View page << Previous 1 2 [3] 4 5 6 7 8 9 10 Next >>

Go Top