Q. | What will be output when you will execute following c code? #include
void main(){
char *ptr="cquestionbank";
printf("%d",-3[ptr]);
}
|
|||||||
|
Answer: | Option C | |
Explaination: | -3[ptr] =-*(3+ptr)
=-*(ptr+3)
=-ptr[3]
=-103 //ASCII value of character 'e' is 103
|
Discussion
Your Comments Goes here... |
Name | Discussion |
---|