UrbanPro

Take BSc Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is macro functions in c language?

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

Friend Philosopher and E Guide for MCA, class IX-X, Polytechnic Diploma, BCA, BSc, BTech

Is used to define function in c like #define f(x,y)=x+y
Comments

My English World

C language is related to computers not to English
Comments

Engineering Teacher

Macro function is specifically used for defining special constants Example #define PI 3.14
Comments

An Experienced Professional

A macro is a fragment of code which has been given a name. Whenever the name is used, it is replaced by the contents of the macro. There are two kinds of macros. They differ mostly in what they look like when they are used. Though macro and functions sound similar but macro is a preprocessed and functions...
read more
A macro is a fragment of code which has been given a name. Whenever the name is used, it is replaced by the contents of the macro. There are two kinds of macros. They differ mostly in what they look like when they are used. Though macro and functions sound similar but macro is a preprocessed and functions are compiled. Before compilation macro name is replaced by macro value but during function call , transfer of control takes place. read less
Comments

Best teaching for all the subjectd

Function is a set of instruction .macro functions means a small function the entire c program is divided into small partitions each part is call as a macro. each marci has its own set of instructions. when ever you define macros in header by #define macro the value of macro is automatically get used...
read more
Function is a set of instruction .macro functions means a small function the entire c program is divided into small partitions each part is call as a macro. each marci has its own set of instructions. when ever you define macros in header by #define macro the value of macro is automatically get used in ur program Ex. If u want to find 2pir value just u need r variable and it's value. Why beacsuse already pi value is evaluated in pi macrofunctions So just u need to define at header file then were ever pi comes it automatically takes 3.14 as pi value Like this we can create sapate macro functions and we have to save those functions in macro directory. Then I should define and use the value of functions read less
Comments

Its a preprocessed functions. They take valid c identifiers as aruguments , same as normal functions.
Comments

Mathematics tutor

Macros can also accept parameters and return values. Macros that do so are called macro functions. To create a macro function, simply define a macro with a parameter that has whatever name you like, such as my_val. For example, one macro defined in the standard libraries is abs, which returns the absolute...
read more
Macros can also accept parameters and return values. Macros that do so are called macro functions. To create a macro function, simply define a macro with a parameter that has whatever name you like, such as my_val. For example, one macro defined in the standard libraries is abs, which returns the absolute value of its parameter. Let us define our own version, ABS, below. (Note that we are defining it in upper case not only to avoid conflicting with abs, but also because all macros should be defined in upper case, in the GNU coding style. See Style.) Macros can also accept parameters and return values. Macros that do so are called macro functions. To create a macro function, simply define a macro with a parameter that has whatever name you like, such as my_val. For example, one macro defined in the standard libraries is abs, which returns the absolute value of its parameter. Let us define our own version, ABS, below. (Note that we are defining it in upper case not only to avoid conflicting with abs, but also because all macros should be defined in upper case, in the GNU coding style. See Style.) read less
Comments

IT Professional

Macros can also accept parameters and return values. Macros that do so are called macro functions. To create a macro function, simply define a macro with a parameter that has whatever name you like, such as my_val. For example, one macro defined in the standard libraries is abs, which returns the absolute...
read more
Macros can also accept parameters and return values. Macros that do so are called macro functions. To create a macro function, simply define a macro with a parameter that has whatever name you like, such as my_val. For example, one macro defined in the standard libraries is abs, which returns the absolute value of its parameter. Let us define our own version, ABS, below. #define ABS(my_val) ((my_val) < 0) ? -(my_val) : (my_val) read less
Comments

View 6 more Answers

Related Questions

How important is class 11? Will it be alright if I join a dummy school in class 11and attend coaching class for JEE?
Class 11 is extremely important as it lays the foundation for future exams. Yes, a lot of students join dummy school and concentrate on preparing for JEE by enrolling in coaching institutes because they...
Gowrikanth
0 0
8
What is the best coaching in Kota for class 11?
All coaching centre are gud you take the demo class in 2_3days in which your understand better that one is better
Sounak
0 0
7
How many days I want learn English?
Approx 6 to 12 months only if your basics are clear.
Sushma
What if I join coaching for IIT JEE in class 12 and not in class 11. Will I still have clear cut concepts in class 11?
U can join .. but the pressures wud increase as u have to cover 2 yr syllabus in one yr .. so its bttr to strt earlyy as possible But if u can cope up n handle pressure .u r gud to go
Gowrikanth
0 0
6
How do I start preparing for JEE MAINS from class 11 without using coaching?
Just go through your ncert text books,concepts should be clear,practice no.of questions for each topic.try to make proper schedule for your study.focus on your pcm subjects,take help of refresher books which clear your base more easily
Vishvajeet
0 0
5

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Divisibility rule
Every no. Is divisible by 1. Every even no. Is divisible by 2. If the sum of digit of a no. Is divisible by 3 then the no. Is also divisible by 3. If the last two digit is divisible by 4 then that no....
M

Mohit S.

1 0
0

Central Dogma
The concept of cental dogma, can be in short noted as : Transcription + Translation Transcription is formation of RNA from DNA. Translation is formation of products from RNA. Dna...

Newton’s Laws Of Motion
Newton’s first law of motion states that a body continues to be in a state of rest or of uniform motion in a straight line unless it is acted upon by a net external force. Newton’s second...

3 Questions To Answer Before You Learn To Speak English
“There are only two types of speakers in the world. 1. The nervous and 2. Liars.” – Mark Twain According to Havard University, 84% people rated the fear of Public Speaking higher than...

Genome
Hi all, Each somatic cell in human body possess same amount of DNA (3*10 9 bp). However, There are somatic cells which lacks some portion of the genome. These deletion are very essential for survial of...

Recommended Articles

Appearing for exams could be stressful for students. Even though they might have prepared well, they could suffer from anxiety, tension etc. These are not good for their health and mind. However, following a few exam preparation tips can save them from all these and help them to score good marks. Let’s find out all...

Read full article >

Once over with the tenth board exams, a heavy percentage of students remain confused between the three academic streams they have to choose from - science, arts or commerce. Some are confident enough to take a call on this much in advance. But there is no worry if as a student you take time to make choice between - science,...

Read full article >

With the mushrooming of international and private schools, it may seem that the education system of India is healthy. In reality, only 29% of children are sent to the private schools, while the remaining head for government or state funded education. So, to check the reality of Indian education system it is better to look...

Read full article >

With the current trend of the world going digital, electronic renaissance is a new movement that is welcomed by the new generation as it helps makes the lives of millions of people easier and convenient. Along with this rapidly changing movement and gaining popularity of Internet, e-Learning is a new tool that emerging...

Read full article >

Looking for BSc Tuition ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for BSc Tuition Classes?

The best tutors for BSc Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take BSc Tuition with the Best Tutors

The best Tutors for BSc Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more