Alt: /u/manucode@infosec.pub
Alt: /u/manucode@lemmy.world
Alt: /u/manucode@lemmy.ml
Alt: /u/manucode@kbin.social
Alt: /u/manucode@infosec.exchange

Matrix: @manucode:matrix.org

  • 0 Posts
  • 1 Comment
Joined 1Y ago
cake
Cake day: Dec 18, 2023

help-circle
rss

My understanding:

int a = 1;
   // variable definition =
   // declaration + initialisation

int b; // variable declaration

b = 2  // variable initialisation,
       // type of assignment

a = 3  // variable assignment

int f(int x, int y);
   // function declaration

int g(int z) {
   return z;
}  // function definition

int f(int x, int y) {
   return x + y;
}  // function definition