We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Graded Discussion Board Dated: Aug 05, 16

Dear Students,

The Graded Discussion Board (GDB) for CS201 will be held on 11th and 12th of August 2016. The topic of the GDB is:

Suppose that you have to write a small C/C++ program where the fast execution of the program is the key requirement. The memory utilization by the program is not an issue at all. You are given two options to develop the program either using Inline functions or simple ordinary functions.

Which of these options you will choose to develop the program? Justify your answer with solid reason(s).

NOTE: Keep your answer to the point. Your answer should not exceed 3 to 4 lines. No GDB solution will be accepted through email before or after the deadline.

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 697

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

Please Discuss here about this GDB.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions.

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

Cs201_GDB_Solution

Answer:

"Inline functions should be your choice because.1.It avoid function calling overhead.2. variables pop on the stack overhead is avoided during function call3. No return call from a function to other function which is again an overhead4.No linker complaining happen when include at mutiple places."
Below is argument why normal functions are not choice .
For normal function call the program stores member address of instructions when u call a function. It loads the function into the memory then copies parameter values and jumps to the memory location of function you r calling.Now it run the function codes and stores the function return valu, and then jump back to the location from where function was invoked.

RSS

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.