Knowledge check.
- Choose one best answer from given 4 choices for each questions.
- Review before submit as you wont get a chance to review after submit.
- Max Time for quiz is 30 mins and Exam is 90 mins.
- Login is not required for an exam or a quiz.
- By submitting you formally acknowledge and accept terms and conditions mentioned here.
Debugging helps in the following :
Which of the following is related to a Microsoft Development tool package.
Which of the following are constituents of a C program :
Give the output of the following code snippet :
void main()
{
int a=30,b=20,c=50;
if(a % b == c % 2)
b=10;
else
c=40;
a=50;
printf("%d %d %d",a,b,c);
}
Which of the keywords denote the size and type of a variable in C :
Give the output of the following code snippet :
void main()
{
Test();
void Test()
{
printf("Hello");
}
}
When the breakpoint is placed at a particular line, the execution of the code is :
Which mode is used to denote opening the binary file for writing but discards any previous contents if any?
Which of the following statements is not true with regards to the continue statement :
Give the output of the following code snippet :
void main()
{
int a=13,b=20;
if(!a!=b)
printf("%d",++a);
else
printf("%d",--b);
}
Which of the following functions are available in the header file string.h in C?
Which of the following statements is true about an escape sequence in C?
A function can be used as a parameter for another function. State true or false :
Free Edition of Visual Studio is,
Give the output of the following code snippet :
struct p
{
int mark1;
char name[10];
int mark3;
};
int main()
{
struct p x = {100};
printf("%d %s %d\n",x.mark1,x.name,x.mark3);
}
Give the output of the following C code:
int mult(int a, int b);
void main()
{
int a=10,b=2;
int t1=mult(a,b);
int t2=mult(3,30);
printf("Sum = %d", t1+t2);
}
int mult(int a, int b)
{
return a*b;
}
Give the output of the following code snippet :
void main()
{
int a;
for(a=0; a< 5; a++)
{
if(a==2)
break;
printf("Hello world");
}
}
Which of the following is related to a Microsoft Development tool package?
Give the output of the following code snippet :
void main()
{
static int x;
printf("x is %d", x);
}
What is the green play button in the Visual studio does?
Give the output of the following code snippet :
void main()
{
char arr[11]="The African";
printf("%s",arr);
}
Give the output of the following code snippet :
int i=10;
int func(int x)
{
i++;
return ++i;
}
int func2(int y)
{
i=30;
--i;
return --i;
}
void main()
{
int a=func(i);
int b=func2(i);
printf("%d",a*b);
}
Give the output of the following code snippet:
struct p
{
char c;
float f;
};
int main()
{
struct p x = {1,97,3};
printf("%f \n", x.f);
}
Give the output of the following code snippet :
void demo();
int main()
{
demo();
return 0;
}
void demo()
{
printf("Hello ");
}
Give the output of the following code snippet :
int main()
{
int i=0;
while(!i++)
{
printf("%d",i--+ ++i);
main();
}
}
Which mode permits reading and writing the same file?
Which of the following is a valid syntax for the sscanf() function?
Automatic variables are variables that are
Visual Studio has
Give the output of the following code snippet :
void main()
{
static int x;
if (x++ < 2)
{
printf("Ho " );
main();
}
}
Give the output of the following code snippet :
int x = 5;
void main()
{
int x = 3;
printf("%d ", x);
{
x = 4;
}
printf("%d", x);
}
Boiler Plate code is auto-generated in Visual Studio by,
Which of the following is related to a Microsoft Development tool package.
Which of the following is a debugger :
Give the output of the following code snippet :
int func()
{
int i=10;
if(i!=0)
return 10;
else
return 20;
}
int main()
{
int a=func();
printf("%d",a);
}
Which mode is used to denote opening the binary file for update?
Which of the following is a two dimensional array in C :
The main function in a given program cannot be called recursively. State true or false :
Give the output of the following code snippet :
int main()
{
int i=0;
for(i=0; i< 5; i++)
{
if((i==2)||(i==4))
break;
printf("Ho");
}
printf("Hello World");
}
Give the output of the following code snippet :
int main()
{
float a,b;
int func(int,float);
a=func(100,250.5);
b=func(20,20.75);
printf("%.2f %.2f",a,b);
}
int func(int a,float b)
{
return ((float)a+b);
}
Give the output of the following code snippet :
int func(int a)
{
int b=10,i=0;
while(a!=0)
{
int c=a+b;
a--;
b--;
printf("%d ",c);
break;
}
return 0;
}
int main()
{
int x=5;
func(x);
}
Which of the keywords denote the size and type of a variable in C :
Give the output of the following code snippet :
struct student
{
int mark1;
int mark2;
} p[] = {0};
void main()
{
printf("%d", sizeof(p));
}
Give the output of the following code snippet :
int main()
{
int i=0;
if(i--)
{
printf("%d",i++);
main();
}
else
printf("%d",--i);
}
Which of the following are file positioning functions in C?
Following is a challenge with Visual studio for a beginner,
Give the output of the following code snippet :
int func(int a)
{
int b=10;
return a+++ ++b;
}
int main()
{
int x=5;
int z=func(func(func(func(5))));
printf("%d",z);
}
Which of the keywords denote the scope of a variable in C :
What does the fread() function return?
Which of the keywords denote the size and type of a variable in C :
Give the output of the following code snippet :
struct Point
{
int x;
int y;
};
int main()
{
struct Point p1 = {10, 20};
struct Point p2 = p1;
if (p1.x == p2.y)
printf("p1 and p2 are same ");
}
Which among the following is the correct syntax to declare a variable as static and register?
Which of the following is an example of looping in C?
Give the output of the following code snippet :
int x;
void main()
{
printf("%d", x);
}
The conditional operator can be used to replace which condition statement in C?
Which of the following statements is true about Strings in C :
Consider the given example of a function declaration in C. State which of the following is correct.
Give the output of the following code snippet :
struct p
{
int k;
char c;
};
int p = 10;
int main()
{
struct p x;
x.c = 'B';
printf("%d %d\n", x.c, p);
}
Identify the general syntax of the conditional operator in C :
What is the return type of the getchar() function?
Visual Studio is NOT
What is Visual Studio?
Which is the function used to compare two strings in C?
Give the syntax for the do-while loop in C :
Give the output of the following code snippet :
int main()
{
int i,j,k;
for(i=0,j=2,k=1; i< =4; i++)
{
printf("%d ",i+j+k);
}
return 0;
}
Platforms and software supported by Visual Studio are,
Give the output of the following code snippet :
void main()
{
int a=300,b=20,c=50;
if(a % b == c % 2)
a=10;
else
c=40;
a=50;
printf("%d %d %d",a,b,c);
}
Platforms and software supported by Visual Studio are,
Give the output of the following code snippet :
void main()
{
int k;
for (k = -3; k < -5; k++)
printf("Hello");
}
Which of the keywords denote the size and type of a variable in C :
Which of the following operators performs the same function of the logical AND operator?
Where should a function be defined in a C program to be called from the main function in a single file program?
Name the function key associated with debugging an application in Visual Studio :
Give the output of the following code :
void main()
{
char str1[]= {0};
printf(str1);
}
Give the output of the following code snippet :
int main()
{
do
printf("In while loop ");
while (0);
printf("After loop\n");
}
Give the output of the following program :
int fun(int i)
{
i++;
return i;
}
int main()
{
int fun(int);
int i=3;
fun(i=fun(fun(i)));
printf("%d\n", i);
return 0;
}
Which of the keywords denote the size and type of a variable in C :
When a program begins execution, which of the following streams are open?
Give the output of the following code snippet :
int temp = 100;
switch(temp)
{
case 10 :
printf("10");
break;
case 10 :
printf("10");
break;
case 100 :
printf("1000");
break;
default :
printf("default");
break;
}
Give the output of the following code snippet :
void main()
{
int a=1;
if(!a)
printf("Value is not 1");
else
printf("Value is 1");
}
Give the output of the following code snippet :
void main()
{
char new1 ='c';
if(( new1 =='C') || (new1 =='c'))
printf("Same");
else
printf("Not Same");
}
The steps to start a New Wizard in Visual Studio 2010 is,
Visual Studio has
Give the output of the following code snippet :
int main()
{
int i;
for(i=1; i< =3; i++)
{
printf("Ho ");
}
printf("%d",i);
return 0;
}
Give the output of the following code :
struct student
{
int no;
char name[20];
};
void main()
{
struct student s;
no = 8;
printf("%d", no);
}
Give the output of the following code snippet :
struct student
{
int no;
};
void main()
{
struct student s;
no=10;
printf("%d",no);
}
Give the output of the following code snippet :
int main()
{
for(int i=0; i< =4; i++)
{
printf("%d ",i);
}
return 0;
}
Boiler Plate code is auto-generated in Visual Studio by,
Give the output of the following code snippet :
void main()
{
int x=0,z;
float p=2.4567;
float q=5.6543;
float r=0.0;
printf("%4.4f",p+q-r);
}
Which of the following are examples of built in functions?
Give the output of the following code snippet :
void main()
{
int a=12,i=0;
--a;
while(!i)
{
printf("%d",a);
}
}
Which of the following are the user interfaces that help to debug a program with Visual Studio:
Which of the following statements in C completely skips the particular iteration of the loop but starts the next iteration?
Give the output of the following code snippet :
void main()
{
char new1[]="Welcome";
printf (new1);
}
Which is the function key in VS is associated with passing the control to the function definition to debug it using breakpoint:
Which function is used to position the stream at the position recorded by fgetpos() function?
Name the looping statements available in C :
Give the output of the following code snippet :
int main()
{
int i=0;
while(!i)
{
printf("%d",i++);
main();
}
}
Which of the following statements is true about the break statement in C:
How many arguments does the fclose() function take?
Give the output of the following code snippet :
struct p
{
int k;
char c;
};
int p = 10;
int main()
{
struct p x;
x.k = 10;
printf("%d %d\n", x.k, p);
}
Given the following code snippet, find the output of the program :
void main()
{
int a=5;
switch(5)
{
case 1:
printf("Value is 5");
break;
case 5:
printf("Value is 1");
break;
}
}
Which of the following is a valid initialization of a multidimensional array?
Give the output of the following code snippet :
int func(int,float);
int main()
{
float a,b;
a=func(100,250.5);
b=func(20,20.75);
printf("%.2f %.2f",a,b);
}
int func(int a,float b)
{
return ((float)a+b);
}
Which of the following functions is used to set the file position for the stream?
Which of the keywords denote the size and type of a variable in C :
Give the output of the following code snippet :
int func(int a*b)
{
int i=10;
if(i< =0)
return a+10;
}
int main()
{
float a=func(10*5+5);
printf("%.2f",a);
}
Give the output of the following code snippet :
struct point
{
int x;
int y;
};
void point fun()
{
struct point temp = {1, 2};
return temp;
}
int main()
{
struct point p1 = {10};
p1 = fun();
printf("%d\n", p1.x);
}
Which of the following steps are required to execute a C program in Visual Studio?
Which of the following are the user interfaces that help to debug a program with Visual Studio :
Give the output of the following code snippet :
void main()
{
int i=0;
int sum=0;
do
{
printf("%d",i);
sum+=i;
}
while(i=1);
}
Which of the following is a valid string definition?
Give the output of the following code snippet :
int main()
{
for (int i = 0; i < 1; i++)
printf("In the loop");
}
Which is a Visual Studio edition.
Which of the following is not a logical operator in C ?
Which mode is used to denote opening the text file for writing but discards any previous contents if any?
Give the output of the following code snippet :
void main()
{
static double x;
int x;
printf("x is %d", x);
}
Give the output of the following code snippet :
struct p
{
int k;
char c;
};
int main()
{
struct p x = {10,1};
x.k=5;
printf("%d %d\n", x.k,x.c);
}
Which of the following statements is true about the fclose() function?
Which of the keywords denote the size and type of a variable in C :
Consider the given code snippet in C. What is the output of the program :
void main()
{
char a=2345;
printf("%c",a);
}
Give the output of the following code snippet :
struct
{
int no;
}
void main()
{
struct s;
s.no=10;
printf("%d",no);
}
Give the output of the following code snippet :
void main()
{
int i=0;
int sum=0;
do
{
printf("%d",i);
sum+=i;
i++;
}
while(!i);
}
Which is NOT a Visual Studio edition.
Platforms and software supported by Visual Studio are,
Debugging allows you to :
Which mode is used to denote opening the text file for writing, where the writing is done at the end?
What is the output of the given code if the file 'Test.txt' is not present?
void main()
{
char x;
FILE *fp;
fp=fopen("Test.txt","r");
while((x=getc(fp))!=EOF)
printf("%c",x);
printf("\n");
fclose(fp);
}
Which of the following are basic types of variables in C :
Name some of the basic errors that may occur during compilation of a C program :
Name the header file used to call the printf function in the main program.
Give the output of the following code snippet :
int main()
{
int i;
for (i = 1; i !=6; i += 2)
printf("Ho ");
return 0;
}
Which of the following characters are printed by the ispunct() function defined in ctype.h?
The nth element of an array arr[n] of n values is accessed by:
Which of the following is a valid string definition?
Which of the following statements is true about Strings in C :
Consider the given code snippet in C. What is the output of the program :
void hello();
int a1=10;
void main()
{
int a1=20;
printf("%d",a1);
}
Which of the following statements is true about the remove() function?
Give the output of the following code snippet :
void func(int a)
{
int sum=0,x;
while(a!=0)
{
x=a%100;
sum+=(x+x+x);
a=a/10;
}
printf("%d ",sum);
}
int main()
{
func(1000);
func(2222);
}
Give the output of the following code snippet :
int func(int a,int b)
{
int i=100;
if(i++< =100)
return 20;
else
return 30;
}
int main()
{
int z=func(100,200);
printf("%d",z);
}
Which of the following is a valid syntax for the function freopen()?
Give the output of the following code snippet :
void main()
{
printf("Before continue ");
continue;
printf("After continue\n");
}
Give the output of the following code snippet :
int main()
{
int i = 0;
do
{
i++;
printf("Ho ");
}
while (i < 3);
}
Which of the following modes is used to indicate full buffering in the setvbuf() function?
The keyword 'break' cannot be used within :
Give the output of the following code :
void main()
{
int var = strcmp("Hello","World");
printf("%d", var);
}
Which of the following methodologies are used to control the flow of the program in C?
Give the output of the following code snippet :
void func()
{
int j=20;
printf("%d",j);
}
void func()
{
int i=10;
printf("%d",i);
}
int main()
{
func();
func();
}
Versions of Visual Studio are,
Which mode is used to denote opening the binary file for writing, where the writing is done at the end?
Which of the following functions are available in the header file string.h in C?
Give the output of the following code snippet :
int func(int a)
{
int b=0,i=0;
a=b;
while(a< =0)
{
int c=a+b;
a--;
b--;
printf("%d ",c);
func(b);
}
return 0;
}
int main()
{
int x=5;
func(x);
}
Give the output of the following code snippet :
void main()
{
int a=10;
switch(a)
{
case 10 :
printf("%d",a);
break;
case a:
printf("%d",a++);
break;
printf("%d",a);
}
}
Give the output of the following code :
void main()
{
int var = strcmp("Yellow","Yellow");
printf("%d", var);
}
According to the presenter, to overcome the learning curve with Visual Studio, with ease, it’s better to
Platforms and software supported by Visual Studio are,
Which is the function used to length of a string in C?
Give the output of the following code snippet :
void main()
{
int x = 3;
{
x = 4;
printf("%d ", x);
}
printf("%d", x);
}
Which of the following is a ways can be used to represent an array of Strings in C?
Give the output of the following code snippet :
void main()
{
int a=12;
a==12?a=0:a=1;
printf("%d",a);
}
Which of the following functions flushes all the output streams?
Breakpoints allow you to :
Which is the function key in VS is associated with stepping out of the function while debugging?
Which of the following is related to a Microsoft Development tool package?
Debugging allows you to :
Which of the following are the user interfaces that help to debug a program with Visual Studio:
Which of the following is not a debugger :
Give the output of the following code snippet :
struct Point
{
int x;
int y;
};
int main()
{
struct Point p1 = {10};
struct Point p2 = p1;
printf("%d %d", p2.x, p2.y);
getchar();
}
Which of the following modes is used to indicate line buffering of text files in the setvbuf() function?
Which of the following statements are used to alter the flow of control in a C program :
Which of the following is a valid array declaration in C ?
Give the output of the following C code:
int mult(int a, int b)
{
return a*b;
}
int sum ( int a, int b)
{
return a+b;
}
void main()
{
int a=10,b=2;
int t1=mult(a,b);
int t2=mult(3,30);
printf("Sum = %d", sum(t1,t2));
}
Which of the keywords denote the size and type of a variable in C :
When a program begins execution, which of the following streams are open?
Give the output of the following code snippet :
void main( )
{
int c;
c = getchar( );
printf( "\nYou entered: ");
putchar( c );
}
Assume input as 6 :
Give the output of the following code snippet :
void main()
{
int i=0;
int sum=0;
do
{
printf("%d",i);
sum+=i;
}
while(i=1; i< 5; i++);
}
Which of the following is an example of loop in C?
Name some of the problems associated with goto statement :
Versions of Visual Studio are,
What is the range of the values allowed for the data type char in C:
What is the escape sequence used to denote a double quote in C?
Which of the following are keywords in C:
Give the output of the following code snippet :
int func()
{
int i=10;
if(i!=0)
return 10.50;
else
return 20.75;
}
int main()
{
float a=func();
printf("%.2f",a);
}
A function cannot have more than one return statement. State true or false :
Give the output of the following code snippet :
void main()
{
int a=10;
switch(a--)
{
case 10 :
printf("%d ",a);
case 9 :
printf("%d ",a++);
printf("%d ",a);
}
}
Give the output of the following code snippet :
struct student
{
int no;
}
void main()
{
struct student s;
s.no=10;
printf("%d",no);
}
Which is the function used to concatenate two strings in C?
Give the output of the following code snippet :
void main()
{
char new1[]="Hi";
for(int i=0; i< 3; i++)
{
printf("%d ",new1[i]);
}
}
Which of the following are constituents of a C program :
Name the function key associated with setting up a breakpoint in VS :
Which of the keywords denote the size and type of a variable in C :
Which of the following statements is true about a file in C?
Give the output of the following code snippet :
void main()
{
int x=0,y=1,z=2;
x+y-z>10?x=100:y=200;
if(x==100||y==200)
printf("%d",2^x);
else
printf("%d",2^y);
}
Give the output of the following code snippet :
struct test
{
int k;
char c;
float f;
};
int main()
{
struct test var = {5,80,2.0};
printf("%f\n", var.f);
}
If the fopen() function is not able to open a file, then what does it return?
Visual Studio is NOT
Give the output of the following code snippet :
int func()
{
return (double)5.0;
}
void main()
{
printf("%d", func());
}
Give the output of the following code snippet :
int main()
{
struct emp
{
char name[25];
int age;
};
struct emp e;
e.name = "Jenna";
e.age = 25;
printf("%s %d\n", e.name, e.age);
return 0;
}
Give the output of the following code snippet :
int main()
{
int fun(int);
int i = fun(10);
printf("%d\n", --i);
return 0;
}
int fun(int i)
{
return (i++);
}
Give the output of the following code snippet :
struct point
{
int x;
int y;
};
struct point2
{
int x;
int y;
};
int main()
{
struct point p = {1};
struct point2 p1 = p;
printf("%d\n", p1.x);
}
Give the output of the following code snippet :
int main()
{
int n;
for (n = 5; n!=0; n--)
printf("%d ", n--);
return 0;
}
Give the output of the following program :
void main()
{
int a=5, b=10;
if(a==5)&&if(b==10)
printf("Values match");
}
Give the output of the following code snippet :
void main()
{
struct employee
{
int id;
} emp=10;
printf("%d\t",emp.id);
getch();
}
Name some of the basic errors that may occur during compilation of a C program in VS:
Which of the keywords denote the scope of a variable in C :
Give the output of the following code snippet :
void main()
{
struct employee
{
int id;
};
struct employee emp1= {20};
printf("%d\t",emp1.id);
}
Which of the following is a valid structure initialization?
Give the output of the following code snippet :
int func(int a)
{
int b=10;
return a+++ ++b;
}
int main()
{
int x=5;
int z=func(func(func(func(++x))));
printf("%d",z);
}
Give the output of the following code snippet :
void main()
{
int a=13;
if(a==12)
{
a==12?a=0:a=1;
if(a==0)
a++;
else
a--;
}
if(a==13)
a=a-2;
printf("%d",a);
}
Breakpoints allow you to :
In which of the following ways can a structure variable be created?
When is the increment statement(s) of the for loop executed?
Which of the following statements is true :
Which of the following statements is an example of an array initialization in C?
Which of the following are the user interfaces that help to debug a program with Visual Studio:
The steps to start a New Wizard in Visual Studio 2010 is,
Visual studio supports
Give the output of the following code :
struct p
{
int k;
char c;
};
int main()
{
struct p x = {0,1};
x.k=10;
printf("%d %d\n", x.k,x.c);
}
In C, if you pass an array as an argument to a function, what actually gets passed?
How can you deal with errors during compilation of a C program in VS?
Give the output of the following code snippet :
void func()
{
int i=10;
void func1()
{
int j=10;
printf("%d",j);
}
func1();
printf("%d",i);
}
int main()
{
func();
}
What is Visual Studio?
Give the output of the following code snippet :
int main()
{
int a = 0, i = 0, b;
for (i = 0; i < 5; i++)
{
a++;
if (i == 3)
break;
}
printf("%d %d",a,b);
}
Which function returns a non-zero value if the EOF indicator is set for file stream?
Give the output of the following code snippet :
void main()
{
int a=12,i=0;
--a;
i++;
do
{
printf("%d",a);
++i;
}
while(--i);
}
Which of the following statements is true by the Call by reference method?
Give the output of the following C code:
void hello()
{
printf("Welcome");
}
void main()
{
hello();
printf("I repeat");
hello();
}
Which of the keywords denote the size and type of a variable in C :
Which of the following steps are required to execute a C program in Visual Studio?
Give the output of the following code snippet :
void main()
{
char new1 ='c';
if( new1 =='C') || if(new1 =='c')
printf("Same");
else
printf("Not Same");
}
Among all the files that make up a source program, how many times can an external variable be defined?
Give the output of the following code snippet :
void main()
{
int i = 0;
while (++i)
{
printf("Ho");
}
}
Which of the following are keywords in C:
Give the output of the following code snippet :
void func()
{
int i=1;
while(!i)
{
func();
}
printf("%d",i++);
}
void main()
{
func();
}
Property of external variable to be accessed by any source file is called as
Give the output of the following code snippet :
void main()
{
struct employee
{
int id=10;
};
struct employee emp1= {20};
printf("%d\t",emp1.id);
}
Which of the following functions is used to get the current position for file stream?
Name the type of errors that occur due to a missing semi-colon(;) in a C program:
Give the output of the following code snippet :
int func(int a)
{
int b=10,i=0;
while(a!=0)
{
int c=a+b;
a--;
b--;
}
printf("%d ",c);
return 0;
}
int main()
{
int x=5;
func(x);
}
Give the output of the following code snippet :
int sum(int,int);
int main()
{
int c= sum(10,20);
printf("Sum = %d", c);
}
int sum(int a,int b)
{
return a+b;
return a-b;
}
Give the output of the following code snippet :
struct student
{
int id;
};
void main()
{
struct student s[10];
s.id = 10;
printf("%d", s.id);
}
Give the output of the following code snippet :
void main()
{
int i=3,x=10;
i++;
switch(i)
{
case 2:
printf("%d ",x++);
break;
case 3:
printf("%d ",x+2);
case 4:
printf("%d ",x+3);
default:
printf("Hello");
break;
}
}
Give the output of the following code snippet :
int a=10;
void func()
{
L1:
printf("%d",a);
}
void main()
{
int a=13,b=20;
if(!a!=b&&a==!b)
goto L1;
else
b--;
}
Which of the following statement is true about arrays in C :
Give the output of the following code snippet :
void main()
{
int i = 0;
for (i = 0; i < 5; i++)
if (i < 4)
{
printf("Ho ");
break;
}
}
Give the output of the following code snippet :
void dummy() {};
void main()
{
dummy();
}
Give the output of the following code snippet : Assume the input as 100
void main()
{
int x=0,z;
z=printf("%d ",scanf("%d ",&x));
printf("%2d",z);
}
Which of the keywords denote the scope of a variable in C :
What is integrated into Visual Studio?
Give the output of the following code snippet :
void main()
{
int i = 2;
do
{
printf("Hi ");
}
while (i < 2)
}
What does the fclose() function take as the argument?
Give the output of the following code snippet :
struct student
{
char c[10];
};
void main()
{
struct student s;
printf("%d", sizeof(s));
}
What are the types of functions that can be used in C?
Give the output of the following code snippet :
void main()
{
struct temp
{
int a;
char b;
struct temp1
{
char c;
} p;
};
struct temp t1 = {10,'A','e'};
printf("%d %c %c ",a,b,c);
}
Identify the type of error in the given code :
void main()
{
int a = 10;
{
printf("Hello world");
printf("%d",a);
}