(Move to ...)
▼
Program to illustrates, Initializing a Two-Dimensional Array
#include <iostream.h>
#include <conio.h>
void main ( )
{
int i , j ;
char letters[6][1] = { {'M'},{'i'},{'c'},{'k'},{'e'},{'y'} } ;
cout<<"\n The letters are :\n" ;
for (i = 0, j = 0 ; i < 6 ; i++)
cout<<letters[i][j] ;
getch ( ) ;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment