Connecting Tech Pros Worldwide Forums | Help | Site Map

use of setw()

Newbie
 
Join Date: Jun 2007
Posts: 1
#1: Jun 22 '07
Sir,
Can I know what will happen if negative integer argument is passed to Setw() function?
What do you mean by ragged array?

sicarie's Avatar
Moderator
 
Join Date: Nov 2006
Location: USA
Posts: 3,929
#2: Jun 22 '07

re: use of setw()


Quote:

Originally Posted by thenmozhiravichandran

Sir,
Can I know what will happen if negative integer argument is passed to Setw() function?
What do you mean by ragged array?

This will help with setw(), though I still believe the best way is to sit in front of a compiler and try it yourself, see what it outputs.

As for a ragged array, that's more of a definition question, that could probably be answered quickly and easily by Google. (I'm not exactly sure, though I would imagine it is one in which data is inserted sparsely in the indecies - ragged being different levels of "fullness" for each index, not all of them filled).
Reply