4th c++ Problem

Look the code
#include
#include
int main()
{
char a[10]="Hello";
cout<I want address of string....but without use & operator
Good luck

Replies

  • Manish Goyal
    Manish Goyal
    hey what happened ceans?
    I don't think that this question is that much tough....you have to use just 5 letters ..
  • gaurav.bhorkar
    gaurav.bhorkar
    You have to cast the 'str' to a void pointer.

    ie.

    cout << (void *) a ;
  • Manish Goyal
    Manish Goyal
    Bingo
    Gaurav..You are right!!!!!!!
  • gaurav.bhorkar
    gaurav.bhorkar
    goyal420
    Bingo
    Gaurav..You are right!!!!!!!
    Looking forward to answer some more questions.
  • Hussanal Faroke
    Hussanal Faroke
    gaurav is right!!!

You are reading an archived discussion.

Related Posts

I am currently in 3rd year of electronics and electrical engineering .Although i am about to complete my B.E within one and a half year ,it doesn't feel like it...
Hello Everyone, An Irish company is launching a new motor technology called E-Orbo. The interesting thing about their technology is they claim it produces torque without back EMF. This seems...
I m a civil engg stdent from bit mesra,ranchi..... my 4th is goin 2 start....i dont have any idea regarding trainin n all...so plzz help me out.....whenn izz the right...
I am doing 2nd year BE Mech in Coimbatore. I want to know the companies offering in-plant training for mechanical engineering students in chennai.
what are memory segments and segment regiter? explain role of both in a computer system? let if i am working on word file then processor perform what activties ..i mean...