[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

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);
}

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

Asked In :: Commvault

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here