What will be the output of the following C code?
#include <stdio.h>
void main()
{
int k = 4;
float k = 4;
printf("%d", k)
}
#include <stdio.h>
void main()
{
int k = 4;
float k = 4;
printf("%d", k)
}
A. Compile time error
B. 4
C. 4.0000000
D. 4.4
Answer: Option A
Join The Discussion