[x]
Ever Worried about Missed / Lost Mobile Phone (or) Mobile Phone Theft ?
Use GinGly to Save your Mobile Numbers and Useful Messages
Limited Time Free Access .Hurry Up !!!
Login
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Resend Activation Email
|
Forgot your Password?
Join IT Acumens Discussion Zone Free!
Welcome,
Guest
. Please
login
or
register
.
September 09, 2010, 04:35:25 AM
Home
Search
Team
Calendar
Gallery
Contact
Downloads
GoogleTagged
Login
Register
IT Acumens Discussion Zone
»
Tech News
»
Programming Discussions for Engineers
»
Programming Skills in "C++"
(Moderators:
VelMurugan
,
thiruvasagamani
) »
Declaration part in C++
« previous
next »
Reply
Print
Register to comment on this topic
Pages: [
1
]
Author
Topic: Declaration part in C++ (Read 231 times)
sukishan
Hero Member
Posts: 2918
Acumen
Declaration part in C++
«
on:
July 10, 2009, 09:57:37 PM »
Quote
Declarations
A declaration creates a type, object, or function and gives it a name. The syntax is a type name followed by a list of objects with possible modifiers and initializers applying to each object. A name consists of upper or lowercase letters, digits, and underscores (_) with a leading letter. (Leading underscores are allowed but may be reserved). An initializer appends the form =x where x is an expression, or (x,y) for a list of one or more expressions. For instance,
string s1, s2="xxx", s3("xxx"), s4(3,'x'), *p, a[5], next_Word();
declares s1 to be a string with initial value "", s2, s3, and s4 to be strings with initial value "xxx", p to be a pointer to string, a to be an array of 5 strings (a[0] to a[4] with initial values ""), and next_Word to be a function that takes no parameters and returns a string.
Logged
A good beginning makes a good ending
Reply
Print
Register to comment on this topic
Pages: [
1
]
« previous
next »
IT Acumens Discussion Zone
»
Tech News
»
Programming Discussions for Engineers
»
Programming Skills in "C++"
(Moderators:
VelMurugan
,
thiruvasagamani
) »
Declaration part in C++