What is define c?



What is define c?..

Answer / Anshul Bhaskar

The keyword "define" in C is used to create macros. Macros allow users to define shorthand names for frequently used expressions, making the code more readable and maintainable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

how to write a bubble sort program without using temporary variable?

1 Answers   Aricent,


Can a pointer point to null?

1 Answers  


main() { intx=2,y=6,z=6; x=y=z; printf(%d",x) }

5 Answers   Amazon, HCL, Thought Works,


How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)

4 Answers  


Hi, main() { } Is a user defined function or Built in Functionn

26 Answers   Honeywell, Yahoo,


How can I ensure that integer arithmetic doesnt overflow?

1 Answers  


write a program to convert a expression in polish notation (postfix) to inline (normal)

0 Answers   Siemens,


send me the code of flow chart generator using C-programming language amd this code should calculate the time and space complexity of the given progran and able to generate flowchart according to the given program?

0 Answers   TCS,


Write a C program where input is: "My name is xyz". output is: "xyz is name My".

1 Answers   TCS,


Why c is called object oriented language?

1 Answers  


write the function int countchtr(char string[],int ch);which returns the number of timesthe character ch appears in the string. for example the call countchtr("she lives in Newyork",'e') would return 3.

6 Answers  


main() { enum{red,green,blue=6,white}; pf("%d%d%d%d", red,green,blue,white); return 0; } a)0 1 6 2 b)0 1 6 7 c)Compilation error d)None of the above

6 Answers  


Categories