Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] plz help in that array code

Status
Not open for further replies.

eng_msa_8_8

Junior Member level 3
Joined
Jun 11, 2009
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,468
how can i receive the out put of array M

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
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top