x

Choose Country Code

x

Direction

x

Ask a Question

  • Ask a Question
  • Scan a Question
  • Post MCQ
  • Note: File extension must be of jpg, jpeg, png, bmp format and file size must not exceed 5 MB
x

Ask a Question

x

x
x
x
Hire a Tutor

Answers and Solutions

What's Your Question?
Answer

Regarding functions, yes obviously it gives you some overhead but you need to carefully identify the piece of code or say to say operations which you need to use again and again in your entire code, that part should be put into separate function, so sometimes (when working with big projects or modules) its absolutely necessary to create functions you just simply can't avoid it, but as i said, to carefully identify the piece of code is important, and regarding inline functions, yes they are faster because, they are bind with the call at compile time, inline functions have their own rules, for e.g. you can't declare loop and some other things in inline functions... so when you have piece of code which does not include such things (like loop and all) you can use inline functions. rather than normal functions

Post Answer and Earn Credit Points

Get 5 credit points for each correct answer. The best one gets 25 in all.

Post Answer