Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged l-value
0
votes
1
answer
1
Programming in C
#include<stdio.h> void test(int); void test1(int *); int main() { int x = 30, *s = &x; test(x++); //test(30++) ...statement P test1(s++); //test(some address++) ...statement S return 0; } void test(int x){ printf("%d\n" ... *s){ printf("%d\n",*s); } My doubt is why are we not getting L-value error in both the cases? The program correctly outputs 30 31
#include<stdio.h>void test(int);void test1(int *);int main() { int x = 30, *s = &x; test(x++); //test(30++) ...statement P te...
just_bhavana
580
views
just_bhavana
asked
Nov 10, 2017
Programming in C
programming-in-c
l-value
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register