General C language programming question. Say I have a defined constant like this: #define HOME_PAGE "Welcome to the CNAI\ Demo ServerWhy not visit: Netbook Home PageComer Books Home Page\n" Is it possible to use a char array with the same name containing exactly the same info as above so that when HOME_PAGE is referenced there is no difference? I would erase the first constant. Please show me how. Thank you.
General C language
#define HOME_PAGE "<head></head><body><html><h1>Welcome to the CNAI\
Demo Server</h1><p>Why not visit: <ul><li><a href=\"http://netbook.cs.pu\
rdue.edu\">Netbook Home Page</a><li><a href=\"http://www.comerbooks.com\"\
>Comer Books Home Page<a></ul></html></body>\n"
Is it possible to use a char array with the same name containing exactly the same info as above so that when HOME_PAGE is referenced there is no difference? I would erase the first constant.
Please show me how. Thank you.

We need to find, if it is possible to use a char array with the same name containing exactly the same info as above so that when HOME_PAGE is referenced there is no difference.
For every occurence of " and \n inside the array, insert a \ before " and \n.
Step by step
Solved in 2 steps with 2 images









