Character pointer array

 


//array of char pointer

#include<iostream.h>


int main(int argc, char *argv[])

{

char* p[]={"sun","mon","tue","wed"};

for(int i=0;i<4;i++)

cout<<p[i]<<endl;

}

Comments

Popular posts from this blog

ဆိုလာ စနစ္ရွိ BATTERY AMPACITY အား design ထုတ္တြက္ခ်က္ၿခင္း (1) watt hour ရယူၿခင္း

Pointer to object array