Discussion Locked

arrays in c

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

i am learning c programming language.

I have encountered a problem in which i cannot solve.

How do i display the following in ana array.

v[0] =M, v[1] = w v[2]=a

after i display tis how do i stack R into the array and display the characters and array number please help really stressful

1 reply

by hi_min2

hope the following code may help you:-
main()
{
char a[]={'w','w','a'};
int i,n,x;
clrscr();
x=sizeof(a);
for(i=0;i

This discussion is closed to new replies.