Print Page | Close Window

Query in c programming from correspondence

Printed From: One Stop GATE
Category: GATE AT A GLANCE
Forum Name: Correspondence Courses
Forum Discription: Discuss Correspondence Coaching provided by various institutions here before taking the decision to join one.
URL: http://forum.onestopgate.com/forum_posts.asp?TID=170
Printed Date: 07Feb2025 at 2:04pm


Topic: Query in c programming from correspondence
Posted By: Vijay007
Subject: Query in c programming from correspondence
Date Posted: 02Feb2007 at 5:22pm
Hi,

Q1] #define square(x) x*x
main()
{
int i;
i= 8/square(4);
printf("%d",i);
}

What should be the answer?
Ans given is 1 but i think it is 0

JAI HIND



Replies:
Posted By: manju
Date Posted: 23Feb2007 at 6:07pm
i too think that zero is the right answer...



Print Page | Close Window