Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

HOW to initialize a char array from function?

$
0
0

Greetings,

I have the following code:

char* getdriverlocation();

char driverLocation[255] = getdriverlocation();

but this is not working, I get error C2075: 'driverLocation' : array initialization needs curly braces.

Please Help me to resolve this problem.


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>