Solution. Expressions6 ["computer"] is defined exactly as *((6) + ("computer")). “computer”equivalent to pointer on constant array of chars Constchar* someconststring ={‘c’,’o’,’m’,’p’,’u’,’t’,’e’,’r’,’\0’} 6constant integer Const Int someint=6; So(6) + ("computer") equivalent to ( someconststring)+(6) as the constant array of chars is located in memory continuously expressions pointed to 6 element of {‘c’,’o’,’m’,’p’,’u’,’t’,’e’,’r’,’\0’} Indirection of this address equal to‘e’. Answer: x=’e’;
Comments