ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
What is macro?
 Question Submitted By :: Kapil
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is macro?
Answer
# 1
macro is #define number
 
Is This Answer Correct ?    0 Yes 1 No
Raj
 
  Re: What is macro?
Answer
# 2
A macro is used to define a short functional code where it 
can be inserted in a number of places(where the functional 
code is compiled more than once)
 
Is This Answer Correct ?    1 Yes 1 No
Nagendranath.s
 
 
 
  Re: What is macro?
Answer
# 3
macro is a subroutine.
Need of Macro: Some times there is a need to call the set 
of codedata again and agian in the program.In that 
particular situation we can use macros.
Use of Macro can increase the efficiency of the program and 
also decrease the length of the code.
Macro can be defined by using Define statement
 
Is This Answer Correct ?    1 Yes 0 No
Jayasrinivas.donavalli
 
  Re: What is macro?
Answer
# 4
Macro is define by user
it locks the lot modifications....

Example:

int a[2000]; 
If you use lot of places 2000 in your code
some time you want to change the 2000 to 500
then you must replace 2000 with by 500. this changes are
repeatedly by u....
In this case if you define macro 
Just you change the macro it will effect over all program..
 
Is This Answer Correct ?    0 Yes 0 No
Kesar
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
4.weight conversion: Write a program that will read weight in pounds and convert it into grams.print both the original weight and the converted value.There are 454 grams in a pound.design and carry out a test plan for this program. Wipro1
code snippet for creating a pyramids triangle ex 1 2 2 3 3 3  3
c program to add and delete an element from circular queue using array  1
main() {char a[10]={1,2,3,4,5,6};int x; for(x=0;x<4;x++){ b[x]=x+'a';} printf("%s",b);}  3
I have an array of 100 elements. Each element contains some text. i want to: append a star character to the end of every fifth element remove every second character from every tenth element, and… add a line feed (ascii 10) after the 30th character of every array element whose length is greater than 30 characters.  1
#include <stdio.h> int main ( int argc, char* argv [ ] ) { int value1 = 10; int value2 = 5; printf ( "\n The sum is :%d", value1 | value2 ); } This is the answer asked by some one to add two numbers with out using arithmetic operator?Yes this answer is write it given out put as 15.But how????? what is need of following line? int main ( int argc, char* argv [ ] ) how it work?what is the meaning for this line? please explain me.Advance thanks Excel4
There are 3 baskets of fruits with worng lables,one basket has apple,another basket has orange,another has combination of apple and orange,what is the least way of interchange the lables. Google10
dibakar & vekatesh..uttejana here..abt ur reply for in place reversal of linked list..wats p stands for there?  1
What is volatile in c language? HCL1
struct ptr { int a; char b; int *p; }abc; what is d sizeof structure without using "sizeof" operator?? Verifone8
i want explaination about the program and its stack reprasetaion fibbo(int n) { if(n==1 or n==0) return n; else return fibbo(n-1)+fibbo(n-2); } main() { fibbo(6); }  2
What is the value of y in the following code? x=7;y=0; if(x=6) y=7; else y=1; TCS10
How to add two numbers without using arithmetic operators? Sapient11
How to receive strings with spaces in scanf()  4
what is the difference b/w compiler and debugger? Assurgent1
How would you write qsort?  1
While(1) { } when this loop get terminate is it a infinite loop?  4
how to generate the length of a string without using len funtion?  3
How can I make a program in c to print 'Hello' without using semicolon in the code? C-DAC5
to find out the reverse digit of a given number Infosys5
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com