?
Solved

How do I declare and initilize a const char* to an empty string ""?

Posted on 2006-06-07
3
Medium Priority
?
209 Views
Last Modified: 2010-04-01
     const char* EMPTY_STRING;
How can I initilze it to a blank string ""?
0
Comment
Question by:lapucca
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
List244 earned 500 total points
ID: 16857767
const char* EMPTY_STRING ="";
0
 
LVL 8

Expert Comment

by:List244
ID: 16857776
Why do you want a constant blank string though?
0
 

Author Comment

by:lapucca
ID: 16858030
I'm creating a binary array where I need to mark a empty string if there was no data for that spot.   Thanks.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question