Get Off-Campus Placement Jobs Info !!!
Programs asked in Mettl Coding Round
Click To Practce List of Programs asked in Nagarro !!!

Cisco Written Test Qs.(Technical Aptitude) :: C Preprocessor - Discussion

68 / 119

Find the output for the following C program

#define d 10+10
main()
{
printf("%d",d*d);
}

A120

B400

C210

DNone of the above

Answer: Option (Login/Signup)

Show Explanation

d*d will be replaced by 10+10*10+10 during run-time. So, answer is 10+100+10 = 120

Asked In :: Cisco

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here