macros

Ads

 
 

Share on Google+Share on Google+

rajkumar
macros
1 Answer(s)      6 years and 9 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.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.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.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.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.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.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.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.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.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.14
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version9.14 in your project
Maven Dependency content-api-models-macros >> 9.15
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version9.15 in your project
Maven Dependency content-api-models-macros >> 9.17
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version9.17 in your project
Maven Dependency content-api-models-macros >> 9.18
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version9.18 in your project
Maven Dependency content-api-models-macros >> 9.20
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version9.20 in your project
Maven Dependency content-api-models-macros >> 9.21
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version9.21 in your project
Maven Dependency content-api-models-macros >> 9.23
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version9.23 in your project
Maven Dependency content-api-models-macros >> 9.24
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version9.24 in your project
Maven Dependency content-api-models-macros >> 9.5
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version9.5 in your project
Maven Dependency content-api-models-macros >> 9.6
You should include the dependency code given in this page to add Maven Dependency of com.gu >> content-api-models-macros version9.6 in your project

Ads

 
Advertisement null

Ads