Is it better to use a macro or a function?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

What is the difference between array and structure in c?

0 Answers  


difference between malloc and calloc

3 Answers   HCL, Wipro,


Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

0 Answers  


what is the difference between procedure oriented and object oriented progaming language

1 Answers  


/*program to calculate hra,da in salary if salary less than 10000 then hra15%,da13% otherwise hra20%,da18%/*

6 Answers  






The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

0 Answers  


write a program to swap two variables a=5 , b= 10 without using third variable

5 Answers  


What's wrong with "char *p = malloc(10);" ?

4 Answers  


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

0 Answers  


WHAT IS HEADER?

8 Answers   ProKarma, TCS,


What is the use of a semicolon (;) at the end of every program statement?

1 Answers  


write a c program that if the given number is prime, and their rearrangement(permute) of that number is also prime. Ex: Input is "197" is prime Output: 791,917,179 is also prime. Please any one tell me tha code for that

3 Answers  


Categories