yeah..i did run it..n u get error at p=&a; stating that "const int * can't be converted into int * " rite???.. it's because...tha variable is...
Thank u.. :)
Thank u sir... :)
But ++, -- have higher precedence than / ,*..???
see...wat do u mean by constant variable first of all??? u r actually making a variable hold a constant value in it instead of allowing it to...
I have seen this one in this forum only..but i couldnt understand how come the answer is 10 for the below ??? int z,x=5,y=-10,a=4,b=2; z =...
constant variable say const int a=10; then u cant change a to any other value... ie., a=11; would be an error.. constant pointer int i=10,j;...
thank u for the info..:)
Thank u..:)
ya...u r wonderful sir...:) thank u sir..i got it well...:)
got it... s indicates... AAA %c %s %c BBB so AAA " AAA %c %s %c BBB " %c mapped to " n %s mapped to AAA %c %s %c BBB.. rite??
i expect this.. AAA %c %s %c BBB" AAA %c %s %c BBB"
i expect the below to be output.. char*s=%c%s%c;main(){printf(s,34,s,34);}"char*s=%c%s%c;main(){printf(s,34,s,34);}"
#include <stdio.h> main() { char a[5] = "abcd"; int b = 3; printf("%c\n",a[b]); printf("%c\n",((char *) b)[(int) a]); } i get d d as...
Separate names with a comma.