macros

Ads

 
 

Share on Google+Share on Google+

rajkumar
macros
1 Answer(s)      6 years and 7 months ago
Posted in : Java Interview Questions

this is the one program, sir i want the output for this:

include
include
define SQUARE(x) x*x
int main() {
int i = 2;
int j= SQUARE(i);
printf("The value of j is: %d\n", j);
getch();
return 0;
}
what is the output?

Ads
View Answers

February 2, 2011 at 4:12 PM


Hi Friend,

Output will be 4.

Macros are the identifiers that represent statements or expressions. The code define a macro i.e SQUARE(x) x*x. It will determine the square of the given number.

Thanks


Ads









Related Tutorials/Questions & Answers:
macros
Friend, Output will be 4. Macros are the identifiers
Version of com.gu>content-api-models-macros dependency
List of Version of com.gu>content-api-models-macros dependency
Advertisements
Maven Dependency content-api-models-macros >> 10.0
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.0 in your project
Maven Dependency content-api-models-macros >> 10.1
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.1 in your project
Maven Dependency content-api-models-macros >> 10.10
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.10 in your project
Maven Dependency content-api-models-macros >> 10.11
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.11 in your project
Maven Dependency content-api-models-macros >> 10.12
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.12 in your project
Maven Dependency content-api-models-macros >> 10.13
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.13 in your project
Maven Dependency content-api-models-macros >> 10.14
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.14 in your project
Maven Dependency content-api-models-macros >> 10.15
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.15 in your project
Maven Dependency content-api-models-macros >> 10.16
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.16 in your project
Maven Dependency content-api-models-macros >> 10.17
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.17 in your project
Maven Dependency content-api-models-macros >> 10.18
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.18 in your project
Maven Dependency content-api-models-macros >> 10.19
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.19 in your project
Maven Dependency content-api-models-macros >> 10.2
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.2 in your project
Maven Dependency content-api-models-macros >> 10.20
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.20 in your project
Maven Dependency content-api-models-macros >> 10.21
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.21 in your project
Maven Dependency content-api-models-macros >> 10.22
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.22 in your project
Maven Dependency content-api-models-macros >> 10.23
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.23 in your project
Maven Dependency content-api-models-macros >> 10.24
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.24 in your project
Maven Dependency content-api-models-macros >> 10.3
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.3 in your project
Maven Dependency content-api-models-macros >> 10.4
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.4 in your project
Maven Dependency content-api-models-macros >> 10.5
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.5 in your project
Maven Dependency content-api-models-macros >> 10.6
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.6 in your project
Maven Dependency content-api-models-macros >> 10.7
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.7 in your project
Maven Dependency content-api-models-macros >> 10.8
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.8 in your project
Maven Dependency content-api-models-macros >> 10.9
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version10.9 in your project
Maven Dependency content-api-models-macros >> 9.10
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version9.10 in your project
Maven Dependency content-api-models-macros >> 9.11
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version9.11 in your project
Maven Dependency content-api-models-macros >> 9.12
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version9.12 in your project
Maven Dependency content-api-models-macros >> 9.13
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version9.13 in your project