Interview Question
Country: India
What do you mean by operator? At the very least, we need an assignment operator of some kind, so I would think this not possible. Operators are what manipulate values.
try this one:
main()
{
short int *p=0,k;
printf("enter no:\n");
scanf("%hd",&k);
printf("%d",&p[k]);
}
inside:
p[a] means *(p+a) and if we take & then we get address means
(p+a);
try this in linux.
By taking left shift of that number by 1
- saurabh(vit) April 17, 2012