These are C Computer Science II programming problem Please
These are C++ ( Computer Science II ) programming problem. Please provide the detailed answer the following problems.
1)
2)
Solution
1)
#include<bits/stdc++.h>
 using namespace std;
struct student
 {
};
 //Function Prototype
 void AllocDynamic(struct student* s);
 int main(int argc, char const *argv[])
 {
    struct student* s;
    AllocDynamic(s);
    delete[] s; //free memory
   
    return 0;
 }
 //Defination
 void AllocDynamic(struct student* s)
 {
   
    s=new student[30];
    //return s;
 }
========================================================
2)
b)birthDay.day=25
c)cout<<birthDay.month
e)if(birthDay.month==1)
This all are illegal because we are trying to access private data members though object which not possible

