C++ Programming and Technical Programming Program

What will be the output?

main()
{
int a[]={1,3,5,7};
printf("%d",&a[3]-&a[1]);
}


Options
1) 1
2) 2
3) 3
4) 4

Read Solution (Total 3)

C++ Other Question

Explain passing objects by reference, passing objects by value and passing objects by pointer. What do you mean by persistent and non persistent objects?