Subscribe

Enter your email address:

Categories

 

November 2009
M T W T F S S
    Dec »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Archives

Disclaimer

© 2009 Zero Intellect. All rights reserved. The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway. This material is not sponsored or endorsed by any of the vendors mentioned in this website and their Logos are trademarks of their own and their affiliates.

C++ printing out a specific pattern

 

Sometimes we come across elementary C++ programming tasks but which require you to tax your brain because of the logic involved

 

I came across a question which asked the user to write a c++ program to print the pattern above for any value of N (where N are the number of rows)

1234554321

1234**4321

123****321

12******21

1********1

 

The solution to the problem can

Continue reading C++ printing out a specific pattern

Types of Data Objects in C++

 

A data object is a block in computer memory that can either contain a single value of a group of values. The value of the data objects can be accessed using a simple variable or another complex expression. Each object has a unique data type which determines how much storage would be allocated in memory. It

Continue reading Types of Data Objects in C++

C++ Logical Negation Operator

 

The logical negation operator ! [exclamation] used in C++ and many other languages. However the return value of the operator is overlooked by many people.

 

The syntax of the operator follows is

 

! cast-expression

 

Where, the cast-expression operand must be of scalar type (returning only a single value, not multiple values like an array)

 

The result is of type int

Continue reading C++ Logical Negation Operator