A void pointer is a C convention for “a raw address.” The compiler has no idea what type of object a void Pointer “really points to.” If you write int *ip; ip points to an int.
Void Pointer or Generic Pointer is the one to which any datatype can be assigned.eg.main(){ int *p; void *vp; vp=p;} ...
Is it better to use a pointer to navigate an array of values,or is it better to use a subscripted array name?
It’s easier for a C compiler to generate good code for pointers than for subscripts.
A pointer value is a data object that refers to a memory location. Each memory locaion is numbered in the memory.The number attached to a memory location is called the address
Hi,int *ptr=123;so ptr is pointer varible. suppose the adress of ptr is 2002( Assume) AT this mem-locn: value 123 is saved.to access address use & operatorto access value at the address use * opertator. ...
A pointer variable is a variable that may contain the address of another variable or any valid address in the memory.
pointervariable is a variable that can hold the address of variable and it is act as a array and adavantage of pointer varialble is to change the values in the prgroam in anywhere for example programvoid main(){int a=10,b=20 ...
Pointer variable are initialized by one of the following two waysØ Static memory allocation
Hope this may be the possible answer.#include#define MAX 5int main(){ int p[] = {1,2,3,4,5};//Static initialization int *q = NULL; int i; for(i=0;i
For accessing a VSAM cluster sequentially, STARTBR, READNEXT, ENDBR commands are used. Suppose the VSAM cluster is sorted on the basis of a field (lets say age) and using STARTBR pointer is positioned on the record with name 'brijesh'. By using READNEXT that record is read. Now if i again use READNEXT, next record will be read(which could be the record with name other than 'brijesh'). If I want to read the next record with the same name (i.e. brijesh), whether RESETBR will be
Hi, Do the following steps,To add a pointer (PTR) resource record to a reverse zone------------------------------------------------------------------------------------1- Open DNS. 2- In the console tree, click the applicable reverse lookup zone. (DNS ...
One qn about pointer to funciton :how will a pointer to a pointer to a function will be declaredvoid *(*ptr[]));void *ptr[];void (**ptr[]
Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived object,.calling of that virtual method will result in which method being called? a. Base method b. Derived method..
B
Which of the following is not true in case of command line arguments?A. The argc parameter is used to hold the number of arguments in the command line and is an integerB. The argv parameter is a pointer to an array of a character pointer and each one points to command line argumentsC. The argv[1] always point to program nameD. None of above
C
View page << Previous 3 4 5 6 [7] 8 9 10 11 Next >>

Go Top