Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
Pointers
The operator used to get value at address stored in a pointer variable is
*
&
&&
||
Correct Answer:
*
Next Question→
More Questions from
Pointers
In which header file is the NULL macro defined?
What is (void*)0?
If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?
Can you combine the following two statements into one? char *p; p = (char*) malloc(100);
A pointer is
How many bytes are occupied by near, far and huge pointers (DOS)?
What would be the equivalent pointer expression for referring the array element a[i][j][k][l]
What will be the output of the program? #include
int main() { char *str; str = "%d\n"; str++; str++; printf(str-2, 300); return 0; }
What will be the output of the program? #include
int main() { char *str; str = "%s"; printf(str, "K\n"); return 0; }
What will be the output of the program? #include
int main() { char str1[] = "India"; char str2[] = "CURIOUSTAB"; char *s1 = str1, *s2=str2; while(*s1++ = *s2++) printf("%s", str1); printf("\n"); return 0; }
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments