Huawei
Company
Programming
Program
main()
{
char *p=15;
printf("%d",*p++);
}
Read Solution (Total 5)
-
- error
type conversion is not possible to(integer to char)
type conversion only possible for small range to high range. - 10 years agoHelpfull: Yes(5) No(0)
- Segmentation fault
- 10 years agoHelpfull: Yes(3) No(0)
- segmentation fault (run time error), because pointer always points to address of another variable not value
- 10 years agoHelpfull: Yes(2) No(0)
- error in compilation time
because char can not *p to its value. - 10 years agoHelpfull: Yes(0) No(2)
- Compilation error ,we can't initialize the character type pointer with integer value.If we do then typecasting is required
- 10 years agoHelpfull: Yes(0) No(0)
Huawei Other Question