Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Answers for Language in C Online Test - Online Exam - Online Quiz - Mock Test

←Go Back to Online Practice Test

Ques. What is the output of the program?
#include<stdio.h>
#include<conio.h>
#define sqr(a) a*a
void main()
{
int a=10,b=1,c;
c=sqr(10+1);
printf("Sqr Root of (10+1)is %d",c );
getch();
}
Option 1. 121
Option 2. 21
Option 3. 13
Option 4. Syntax Error

Ans. Option 2

Please provide the reason below. The best provided reason will be displayed with your name(if you are logged-in) on website.
Enter Reason
 
Is it helpful? Yes No
©2024 WithoutBook