मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता ११

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×