Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Write a program that illustrate Macros with Arguments?
Macros is able to also have arguments, just as functions can.
#define AREA(x)(3.14*x*x)
Then at any time the preprocessor finds the phrase AREA (x) it expands it into the statement 3.14 * x * x be careful not to leave a blank space between the macro template and its arguments while defining the macro. The whole macro expansion should also be enclosed within parentheses.
# define AREA(x)(3.14*x*x) # include
main() { float x=2.5,result; result=AREA(x); printf("%f",result); }
smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send
write aprogram for random -search to implement if a[i]=x;then terminate other wise continue the search by picking new randon inex into a
Can one overload the destructor for his class?
# include stdio.h> # include conio.h> # include math.h> void main () { int a=1,sqr=0,cube=0; clrscr (); while (a { sqr=pow(a,2); cube=pow(a,3);
To store a date use a structure that contains three members date, month and year. If the dates are equal then display message “Equal” otherwise “Unequal” Program structure: main()
area
F u nction Returning Object: This program is like to the previous program except the function returns object. The main rule to be remembered is the function returning obj
write an algorithm to swap values without using third variable
how can i write reverse digit function like writing 1234 and printing 4321
z = (a > b) ? a : b;
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd