Teaching HPSC Lecturer (Technical) Mock Test 2024 Programming and Data Structure Programming in C Scope of a Variable
What is the output of the below given code?
#include
int main()
{
int j;
j = printf("Quizall TestSeries\n");
j = printf("%d\n",j);
printf("%d\n",j);
}
1
Quizall TestSeries
20
3
2
Quizall TestSeries
19
2
3
Quizall TestSeries
1
1
4
Error Cannot assign printf to integer
5
Question Not Attempted