what is wrong in my prog; | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what is wrong in my prog;

the flault is in the end in ob.insert() and ob.print() https://code.sololearn.com/cWn34G6Wd0eb/?ref=app thanx 😊

20th Nov 2017, 10:51 AM
Ahmad Bakeer
Ahmad Bakeer - avatar
1 Answer
+ 2
The first error I can see is that you have incorrectly declared the object. Declaring Student ob(); actually creates a function prototype that takes no arguments and returns an object of type Student. So just remove the parenthesis.
20th Nov 2017, 2:08 PM
Kinshuk Vasisht
Kinshuk Vasisht - avatar