हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

A structure declaration is given below. struct employee{ int empno; char ename[10]; }e[5]; Using the above declaration which of the following statement is correct. - Computer Science

Advertisements
Advertisements

प्रश्न

A structure declaration is given below.

struct employee
{
int empno;
char ename[10];
}e[5];

Using the above declaration which of the following statement is correct.

विकल्प

  • cout<<e[0].empno<<e[0].ename;

  • cout<<e[0].empno<<ename;

  • cout<<e[0]->empno<<e[0]->ename;

  • cout<<e.empno<<e.ename;

MCQ

उत्तर

cout<<e[0].empno<<e[0].ename;

shaalaa.com
Structures Introduction
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 12: Arrays and Structures - Evaluation - Section - A [पृष्ठ २२४]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
अध्याय 12 Arrays and Structures
Evaluation - Section - A | Q 9. | पृष्ठ २२४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×