good that i asked. I couldnt have figured out that one. Man, why to keep a character const. an integer! I think thats why they developed C++ to remove its faults!!!!!
Type: Posts; User: lazy_hack
good that i asked. I couldnt have figured out that one. Man, why to keep a character const. an integer! I think thats why they developed C++ to remove its faults!!!!!
code:
printf("%d %d %d",sizeof(3),sizeof('3'),sizeof("3"));
ans:
thanks for the explanation...
"the result of the conditional operator is not an lvalue" line is the crux i believe...
the code was from test ur c skills book....just anther intrsting book..
full program:
main()
{
int a=10,b,c;
((a<20)?b:c)=30;
printf("%d",b);
}
Hi,
Although the expression *((a<20)?&b:&c)=30; works but
((a<20)?b:c)=30 gives
error:...