eng_msa_8_8
Junior Member level 3
how can i receive the out put of array M
i want to printf array M totally for one time
- - - Updated - - -
in the code i clear array M
then i want to print it
it gives me a random number
i want to printf array M totally for one time
Code:
#include<stdio.h>
char i=0 ;
char M[10] = {12 , 13 , 23 , 10 ,5 ,0 ,1, 12 ,9,10} ;
void main()
{
while(i<10)
{M[i]=0;
printf ("M= %d \n" , M[i]);
i++;}
printf ("Mt= %i" , M);
- - - Updated - - -
in the code i clear array M
then i want to print it
it gives me a random number