Tuesday, June 11, 2019

global and local same variable names in c

#include <stdio.h>


int g=30;

int main () {

  /* local variable declaration */
  int g=20;
  printf ("value of g = %d\n",g);

  return 0;
}


output::

No comments:

Post a Comment

python class topic video