c interview questions - Advantage of macro over function in C | by dubebox #shorts

preview_player
Показать описание
c interview questions
Advantage of macro over function in C .

Macro is faster than function, but we should use only when functionality is smaller.

This question is asked very often in c interviews.

#cprogramming #fucntion #macro #shorts #bydubebox #clanguage
Рекомендации по теме
Комментарии
Автор

Small functions are optimized away anyway. And you can't write a very long macro ..oh wait 🫷

abiiranathan