Why declaration of struct array emp[9999] got error?

0

I am trying to declare the struct array but it show error. Error message: Unhandled exception at 0x013F28F9 in assignment 2.0.exe: 0xC00000FD: Stack overflow (parameters: 0x00000000, 0x004B2000).

#include <iostream>
#include <fstream>
#include<string>
using namespace std;

struct emp
{
    int empid;
    int dob;
    int height;
    int weight;
    int years_working;
    int salary;
    int allowance;
    char empname[50];
    char country[25];
    char designation[50];
    char gender[10];
    char education[15];
};


int main()
{ 
    emp employee[9999]; //declaration of struct array emp

    system("pause");
    return 0;
}
c++
asked on Stack Overflow Mar 8, 2020 by blueberry

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0