- What is pointer?
- What is NULL pointer?Is it same as uninitialized pointer?
- What does the error 'NULL Pointer Assignment' mean and what causes this error?
- Difference between NULL pointer and NULL macro?
- What is far pointer? Where we use it?http://www.blogger.com/post-edit.g?blogID=3012383994992801642&postID=2425531620599867473
- What are near,far and huge pointers? How many bytes are occupied by them?
- When you reallocate the memory which is currently referenced by several other pointers, do you have to readjust these other pointers or do they get readjusted automatically?
- Write down the equivalent pointer expression for referring the element a[i][j][k][l]?
- Advantages of using pointers in programs?
- Declare the following
- array of 3 pointers to chars
- array of 3 char pointers
- pointer to array of 3 chars
- pointer to function that receieves int pointer and returns float pointer
- pointer to function that receieves nothing and returns nothing
- How will you declare array of three function pointers where each function receives two ints and returns float?
- What is the size of pointer variable in C?How to calculate the size of pointer?
size of pointer can be calculated by using sizeof() operator. Pointer stores the address of the variable. Address of variable is always an integer value. Storing integer value require 4bytes(32 bit compiler). So pointer variable require 4 bytes of memory - What is the size of void pointer variable in c?
void *ptr;
sizeof(ptr)? - What is the size of const pointer variable in C?
- Which pointer require more memory space int or character pointer?
Size of pointer variable does not depends upon data type. Pointer variable only stores the address of the variable. Address is always integer value. So size of pointer variabl of any type is 4 bytes(32 bit compiler) - Write the equivalent pointer expression for the following array variables?
- a[i][j]
- a[i][j][k]
- a[i][j][k][l]
Pages
The greatest mistake you can make in life is to be continually fearing you will make one
Monday, 10 May 2010
Questions on Pointers
Labels:
C Questions
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment