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

  • Konbuyu başlatan Admin
  • Başlangıç tarihi
A

Admin

Yönetici
Yönetici
see these two function definitions
C:

Kod:
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 resource but didn't get it.
Thanks in advance
 
Geri
Üst