96gfeeinte
Technical User
hi friends,
i hav just started learning c++.i hav a pgm in C.but i don't know how to do the same in c++.so, can anyone help me out??????
the pgm in C is:
main () {
char s[10] = "GOOD";
printf ("%s, %u, %u\n", s, s, "GOOD"
}
o/p:
GOOD, 1324568(addres.. not exact ans), 1324568(same address).
now, how do i get same type of o/p in c++.
i hav just started learning c++.i hav a pgm in C.but i don't know how to do the same in c++.so, can anyone help me out??????
the pgm in C is:
main () {
char s[10] = "GOOD";
printf ("%s, %u, %u\n", s, s, "GOOD"
}
o/p:
GOOD, 1324568(addres.. not exact ans), 1324568(same address).
now, how do i get same type of o/p in c++.