Pointer concept is in Java. It internally invokes pointers.It would be too complex when we use pointers. When we use pointers we will face some problems like memory leakage, eventhough when we retrieve the existing value from user-defined datatype(arrays,strings ...
no ...
pointer is used to store the address of given variable
A pointer is a variable, which contains the address of another variable ...
Main(){ int i, j, *p; i = 25; j = 100; p = &i; // Address of i is assigned to pointer p printf("%f", i/(*p) ); // i is divided by pointer p}
A) Compile errorB) 1.00000C) Runtime error.D) 0.00000Explanation: Error because i/(*p) is 25/25 i.e 1 which is int & printed as a float, so abnormal program termination, runs if (float) i/(*p) ----->
Far pointers are mainly used for 32 bit addressing that is the segment offset addressing. Normal pointers can onLy access the memory locations which is allocated by the compiler for that program. Far pointers are used for referencing memory locations ...
Both the long pointer and char pointer consumes the same memory.By declaring variable as a long pointer means that it contains the address of another long variable and also for char pointers, it contains the address of another char variable.So all ...
What is the type of the variable b in the following declaration?#define FLOATPTR float*FLOATPTR a,b;a) float b) float pointer c) int d) int pointer
Choose the correct option
Hi,I agree with Ashtosh , since linked list nodes are stored dynamically in memory wherever it has space so the simple addition wont give track of nodes but a junk value.we can construct this only by combining two pointer nodes for single data value.its ...
Why don\'t we add null pointer at the end of array of integer?How can we calculate the length of array of integer?
Yes pointer size is always that of size of word on a particular architecture.Actually pointer only contains starting address of a data type, there after how many bytes we have to read (e.g. 1 for char, 2 for int) depends upon type of pointer declared. ...
View page [1] 2 3 4 5 6 7 8 9 10 Next >>

Go Top