Thảo Justin
New member
What will be the output of the following C++ code?
A. abcdefghij
B. address of string "abcdefghij"
C. compile time error
D. runtime error
Code:
#include <iostream>
using namespace std;
int func(void *Ptr);
int main()
{
char *Str = "abcdefghij";
func(Str);
return 0;
}
int func(void *Ptr)
{
cout << Ptr;
return 0;
}
B. address of string "abcdefghij"
C. compile time error
D. runtime error