veddotcom
Journeyman
CODE 1
void main()
{
int arr[]={11,12,13,14,15};
cout<<&&*arr; //this line gives Expression Syntax Error, WHY???????
}
CODE 2
void main()
{
int arr[]={11,12,13,14,15};
cout<<&(&*arr); //this line gives Lvalue Required Error, WHY???????
}
What i m thinking....may be i m wrong
FIRST Error
I guess two && operator is not allowed Consecutively becuase this may Conflict with logical operator &&
Second Error
I don't have any clue why i m getting Lvalue Error...How i m suppose to to change the contact value(by putting just braces) stored in "arr"..
Guide me...Thank You.
void main()
{
int arr[]={11,12,13,14,15};
cout<<&&*arr; //this line gives Expression Syntax Error, WHY???????
}
CODE 2
void main()
{
int arr[]={11,12,13,14,15};
cout<<&(&*arr); //this line gives Lvalue Required Error, WHY???????
}
What i m thinking....may be i m wrong
FIRST Error
I guess two && operator is not allowed Consecutively becuase this may Conflict with logical operator &&
Second Error
I don't have any clue why i m getting Lvalue Error...How i m suppose to to change the contact value(by putting just braces) stored in "arr"..
Guide me...Thank You.
Last edited: