Soru C++ veya C, foo(void) olarak bildirilen işlevler ile foo() olarak bildirilen işlevler arasında farklı davranışlara sahip mi?

Bu konuyu okuyanlar

Roni12

Öğrenci
Cezalı
Katılım
19 Aralık 2022
Mesajlar
4
Reaksiyon puanı
0
Puanları
1
Yaş
24
see these two function definitions
C:
void foo() { }

void foo(void) { }

Is there any difference between these two? If not, why is the 'invalid' argument included? Is it for aesthetic reasons?
I went through this resource but didn't get it.
Thanks in advance
 
Üst