Others
Maths Puzzle
HR Interview
main()
{
int arr[]={1,2,3,4};
int *ptr ;;;;
ptr++ = arr;
printf("%d,%d",ptr[2],arr[2]);
return 0;
}
Read Solution (Total 1)
-
- error in line ptr++ = arr;
if we write
ptr = arr;
ptr++;
then the ans will be 4,3
- 10 years agoHelpfull: Yes(0) No(0)
Others Other Question