Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
 One Stop GATE ForumGATE AT A GLANCECorrespondence Courses
Message Icon Topic: Query in c programming from correspondence Post Reply Post New Topic
Author Message
Vijay007
Newbie
Newbie


Joined: 02Feb2007
Online Status: Offline
Posts: 19
Quote Vijay007 Replybullet Topic: Query in c programming from correspondence
    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



Post Resume: Click here to Upload your Resume & Apply for Jobs

IP IP Logged
manju
Senior Member
Senior Member


Joined: 20Feb2007
Online Status: Offline
Posts: 221
Quote manju Replybullet Posted: 23Feb2007 at 6:07pm
i too think that zero is the right answer...
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

GET LATEST FRESHERS JOBS IN YOUR MAIL





This page was generated in 0.203 seconds.
Vyom is an ISO 9001:2000 Certified Organization

© Vyom Technosoft Pvt. Ltd. All Rights Reserved.

Job Interview Questions | Girls Magazine | DLL, OCX File Errors | Freshers Jobs | Placement Papers | More Papers