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 ( ) ;
}     

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|