[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.

Commvault Written Test Qs.(Technical Aptitude) :: Typedef - Discussion

1 / 40

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


DCompilation error: cannot typedef based on another typedef

Answer: Option (Login/Signup)

Show Explanation


Asked In :: Commvault

Post Your Answer Here:     

Rate This: +0 -0

Report Error

Please Login First Click Here