Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


rajkumar
macros
1 Answer(s)      3 years and 11 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?


Advertisement
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



Related Tutorials/Questions & Answers:
macros
Friend, Output will be 4. Macros are the identifiers
C define Macro
C define Macro       This section illustrates you how to use macros in C. Macros are the identifiers that represent statements or expressions. To associate meaningful
Advertisements
Open Source Excel
, so your users won't have to sacrifice their macros, pivot tables and dynamic..., images, VBA, macros, charts, etc. Safe for Servers - Microsoft Office not required...;  Excel VBA Macros Open source One of Michael?s latest areas
mvc coding - JavaMail
will not automatically reload global library macros Tue Aug 12 12:03:54 CAT 2008
SlickEdit
for recordable and programmable macros, and access to existing macro source
unable to find resource 'VM_global_library.vm' - Java Server Faces Questions
: VM system will not automatically reload global library macros Tue Aug 12 12:03
MIT Open Source
macros and utilities that students find useful and yet often have no central home... release templates or macros to the release area. You must register with us to do
CTutorials
set of nroff macros and have now been converted to HTML. Most
C Tutorials
; C define Macro Macros are the identifiers that represent statements
MisconlineBooks 
description of macros and macro applications. The book also covers important subjects... of software. Its examples form a library of functions and macros that readers
Misc.Online Books
description of macros and macro applications. The book also covers important... of software. Its examples form a library of functions and macros that readers
 

 

 

DMCA.com