Sail E0 Webinar
Question


What will be the output of the program ?


#include
struct course
{
int courseno;
char coursename[25];
};
int main()
{
struct course c[ ] = { {102, "Java"},
{103, "PHP"},
{104, "DotNet"} };
printf("%d " , a[1] .courseno);
printf("%s\n" , (*(c+2)) .coursename);
return 0;
}
Options:
A .  103 DotNet
B .  102 Java
C .  103 PHP
D .  104 DotNet
Answer: Option A

No answer description available for this question. 



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers