1,752 views
1 1 vote

Please tell me about all the variations of these above types of questions that can be asked?

1 Answer

1 1 vote

Refer these two link, these two posts are enough to understand about the pointers(some basic are required). Feel free to ask if you don't get something.

https://stackoverflow.com/questions/5727/what-are-the-barriers-to-understanding-pointers-and-what-can-be-done-to-overcome?rq=1

https://stackoverflow.com/questions/18481740/pointer-expressions-ptr-ptr-and-ptr (examples like you asked in your question).

Position:
Show:

Related questions

0 0 votes
1 1 answer
941
941 views
radha gogia asked Sep 26, 2015
941 views
I went through these two links and found that this behaviour is undefined , but the only issue which I have is that in one sense we say that since local variables live on...
1 1 vote
2 answers 2 answers
1.2k
1.2k views
radha gogia asked Jul 25, 2015
1,227 views
#include<stdio.h int main() { int x=3; int const *ptr =&x; printf("%d",++x); printf("\n %d",++*ptr); return 0; } I am unable to get that when x is a variable not a consta...
0 0 votes
1 answers 1 answer
1.1k
1.1k views
radha gogia asked Feb 23, 2016
1,125 views
when constant type variables cannot be modified then why do we consider them as lvalues , why not only r-values ?
5 5 votes
2 2 answers
1.3k
1.3k views
Aditya asked Sep 11, 2015
1,268 views
int main(void) { char *p = "arjun"; *(p+3) = 'a'; char arr[] = "arjun"; arr[3] = 'a'; printf("%c",arr[3]); printf("%c",*(p+3)); return 0; }I am trying to modify a str...