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

What is the error in the following structure definition. struct employee{ inteno;charename[20];char dept;} Employee e1,e2; - Computer Science

Advertisements
Advertisements

प्रश्न

What is the error in the following structure definition.
struct employee{ inteno;charename[20];char dept;} Employee e1,e2;

टीपा लिहा

उत्तर

Errors:

  1. ‘i’ is missing.
  2. Spaces are missing at two places
  3. The structure name was given wrongly.

Corrected structure:

struct employee {int eno; char ename [20]; char dept;}
employee e, e2;

shaalaa.com
Structures Introduction
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 12: Arrays and Structures - Evaluation - Section - B [पृष्ठ २२४]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×