+ 1

Explanation plz

Void printSum(int a, int b) { cour<<a+b<<endl; } int main() { printSum(13) }

8th Apr 2018, 2:26 AM
Sindhu Sri
Sindhu Sri - avatar
5 Answers
+ 3
line no 3 : its cout line no 7 : missing semicolon on line no 7 you are calling the printsum function on line no 1 to 4, you defined printsum function
8th Apr 2018, 3:06 AM
‎ ‏‏‎Anonymous Guy
+ 3
Various compile errors until you fix the code on line 3 and 7.
8th Apr 2018, 3:40 AM
John Wells
John Wells - avatar
+ 2
after fixing answer would be garbage value + 13
8th Apr 2018, 3:45 AM
‎ ‏‏‎Anonymous Guy
+ 1
Beyond everything Sreejith mentioned, you call printSum with only one number, but it wants two.
8th Apr 2018, 3:25 AM
John Wells
John Wells - avatar
+ 1
What is the output ?
8th Apr 2018, 3:31 AM
Sindhu Sri
Sindhu Sri - avatar