Tag Archives: CPP-Basic

Uses of C++ In Real World

C++ is a programming language with imperative and object-oriented features. It’s known as a middle-level language and is compiled, general-purpose, statically typed, case sensitive, and has a free-form syntax. C++ supports procedural, object-oriented, and generic programming. Programmers widely use C++ for its numerous benefits in application development. It’s also a popular choice for beginners. C++ is used in… Read More »

What is C++

C++ is as an extension of C, and both languages have almost the same syntax. The main difference between C and C++ is that C++ support Object oriented programming (OOPs) paradigm, while C does not. If you learn C++ first, it will be much easier to learn other programming languages like Java, Python, etc. C++ helps you to… Read More »

What is string.h and why do we use?

The string.h header defines one variable type, one macro, and various functions for manipulating arrays of characters. Functions provided by string.h The string.h header file declares a set of functions to work strings. To perform operations like comparison, concatenation, and copying, this string.h library is widely used. This header file defines several functions to manipulate C strings and… Read More »

Writing First C++ Program – Hello World Example

C++ is Object-Oriented Programming (OOP) language. C++ is easy to understand. You can learn C++ by following these steps: Writing your program in a text editor. Then saving it with the appropriate file extension (e.g., .cpp, .c, .cp). Compiling your program using a compiler or an online Integrated Development Environment (IDE). Understanding of the basic terminologies. Writing First… Read More »

Introduction To C++

C++ is a cross-platform language that can be used to create high-performance applications. C++ gives programmers a high level of control over system resources and memory. C++ was developed by Bjarne Stroustrup, as an extension to the C language. Language designers: Bjarne Stroustrup Language paradigms: Object-oriented program. There are various published Versions of C++ : C++98, C++03, C++11,… Read More »

C Preprocessors

Prerequisite – C language C Preprocessor is not a part of the compiler, but is a separate step in the compilation process. Preprocessors are programs that process our source code before compilation. C Preprocessor is just a text substitution tool that instructs compiler to do required pre-processing before actual compilation. All preprocessor commands begin with a hash symbol… Read More »

Scope Rules in C

The scope of a variable x is the region of the program in which uses of x refers to its declaration. In C, all identifiers are lexically(or statically) scoped. Scoping in C is generally divided into two classes: Static Scoping, and Dynamic scoping. Static Scoping : Static scoping is also called lexical scoping. Static scope refers to the… Read More »

Strings in C

In this article, you’ll learn about strings in C programming. Strings are defined as an array of characters. The difference between a character array and a string is the string is terminated with a special character ‘\0’. Example : char name[] = “first name” ; Declaration of strings : When the compiler encounters a sequence of characters enclosed… Read More »