Function - Study Mode

[#156] What will be the output of the following C code? #include <stdio.h>
int *i

int main()
{
if (i == 0)
printf("true
")

return 0

}
Correct Answer

(B) true only if NULL value is 0

[#157] What will be the output of the following C code? #include <stdio.h>
void main()
{
#define max 37

printf("%d", max)

}
Correct Answer

(B) Compile time error

[#158] What will be the output of the following C code? #include <stdio.h>
#define Cprog
int main()
{
int a = 2

#ifdef Cprog
a = 1

printf("%d", Cprog)

}
Correct Answer

(D) Compile time error

[#159] What will be the output of the following C code? #include <stdio.h>
int *i

int main()
{
if (i == NULL)
printf("true
")

return 0

}
Correct Answer

(A) true

[#160] What is the correct way to declare a function in C that takes no arguments and returns an integer?
Correct Answer

(C) func()