C Programming :: Typedef - Discussion
Home > C Programming > Typedef > MCQs Questions Discussion
1 / 3
What is output or the error in the program?
#include <stdio.h>
typedef int CommVault;
typedef CommVault CommVaultindia;
void main () {
CommVaultindia val= 234;
printf("%d ", val);
}
#include <stdio.h>
typedef int CommVault;
typedef CommVault CommVaultindia;
void main () {
CommVaultindia val= 234;
printf("%d ", val);
}
ACompilation error: typedef cannot be outside a function scope
BCompilation error: undefined variable val
C234
DCompilation error: cannot typedef based on another typedef
Answer: Option (Login/Signup)
Show Explanation