how to declare variable in c++ i dont want to define it so it should not consume any memory just declaration? -


When we write int, the compiler gives memory to int, but now I just want to say to the compiler that the variable integer But

If it is a global variable, use it extract To make it a pure announcement:

  extern int a;   

It will still need to be defined somewhere, if the program uses it.

If this is a local variable, you can not declare it without defining it; This will be made when the program will reach the announcement.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -