Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

C Change Value of Array elements

int mark[5] = {19, 10, 8, 17, 9}

// make the value of the third element to -1
mark[2] = -1;

// make the value of the fifth element to 0
mark[4] = 0;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #C #Change #Value #Array #elements
ADD COMMENT
Topic
Name
7+1 =