I am a beginner in c++. In c this program works . But when run in C++ it gives
an error while assigning a pointer value to an integer variable.
n1 = *(&sdobj.mark1[i]);
n2 = *(&sdobj.mark2[i]);
The program is given below. Can anybody explain.
#include<stdio.h>
struct student
{...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.