C Programming

SustainableLucchesiite avatar
SustainableLucchesiite
·
·
Download

Start Quiz

Study Flashcards

5 Questions

What is the correct way to scan the name of an employee?

scanf("%s", emp[i].ename);

What is the correct way to access the name of the second employee in the array?

emp[1].ename

What is the correct way to declare the 'emp' array of structures?

struct employee emp[10];

What is the correct condition to check if an employee's salary is less than Rs. 10,000 and experience is 5 or more?

if(emp[i].salary < 10000 && emp[i].exp >= 5)

What is the correct way to print the employee number in the for loop?

printf("%d", emp[i].eno);

Quiz: C Programming - Array of Structures Test your knowledge of C programming by solving this quiz on using an array of structures to filter and print employee names and numbers based on experience and salary conditions. This quiz covers concepts such as arrays, structures, and conditional statements in C programming.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

C Programming
3 questions

C Programming

UnquestionableMoldavite1696 avatar
UnquestionableMoldavite1696
C Programming Fundamentals Quiz
10 questions
Programming and Problem-Solving Quiz
10 questions
Use Quizgecko on...
Browser
Browser