extremely simple question, just wanted to make sure of the answer. What would the code look like of you wanted to have a function prototype that declared two integers, one of which has a default value of 20?
This is a discussion on default value within the C++ Programming forums, part of the General Programming Boards category; extremely simple question, just wanted to make sure of the answer. What would the code look like of you wanted ...
extremely simple question, just wanted to make sure of the answer. What would the code look like of you wanted to have a function prototype that declared two integers, one of which has a default value of 20?
This has been a public service announcement from GOD.
111 1111
ggCode:void foo(int a, int b = 20); ... void foo(int a, int b/*=20*/) { ... }