Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c change value of const

#include<stdio.h>
#include<stdlib.h>
int main()
{
    const int var = 10;
  
    int *ptr = &var;
    *ptr = 12;
  
    printf("var = %d
", var);
  
    return 0;
}
 
PREVIOUS NEXT
Tagged: #change #const
ADD COMMENT
Topic
Name
6+7 =