Why my code no run.It's bug in void nhap and no run | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why my code no run.It's bug in void nhap and no run

#include <stdio.h> void nhap( int &a, int &b); int tinhTong(int a, int b); void xuat(int c); int main() { int a, b; nhap(a,b); int c= tinhTong(a,b); xuat(c); } void nhap( int &a, int &b){ scanf("%d %d",&a, &b); } int tinhTong(int a, int b){ int c= a+b; return c; } void xuat(int c){ printf("%d",c); }

4th Apr 2020, 2:35 PM
Nam Le
Nam Le - avatar
1 Answer
0
Error in prototype of nhap, and call'it inside main
6th Apr 2020, 9:47 PM
Amine Laaboudi
Amine Laaboudi - avatar