Message from C, C++ talks

June 2019

— This is the one I think.

— No problem

— Gj, that's it

— Please help

— 

#include <stdio.h>

void print();
int main()
{
int x = 10
print(x);
}

void print(num){

printf("%d \n", num);

}


Can someone help me , this function doesn't work

— Error ?

— ;

— After 10

— The same

— Text of error

— Test.c: In function ‘print’:
test.c:10:6: warning: type of ‘num’ defaults to ‘int’ [-Wimplicit-int]
void print(num){

Message permanent page

— Ah

— Type of param

— Make int num

— Where recommend to define num ?