Strings

Strings

String can be represented as a single-dimensional character type array. Strings in C are group of characters, digits, and symbols enclosed in quotation marks or simply we can say the string is declared as a “character array”. The end of the string is marked with a special character, the ‘\0’ (Null character), which has the…

Array

Array

An array is a collection of similar kind of data elements stored in adjacent memory locations and are referred to by a single array-name. The first element in the array is numbered 0, so the last element is 1 less than the size of the array. Before using an array its type and dimension must be declared….

Loop Control Statement

Loop Control Statement

Loop control statements are used when a section of code may either be executed a fixed number of times. C gives you a choice of three types of loop statements, while, do- while and for. The while loop keeps repeating an action until an associated condition returns false. This is useful where the programmer does…

Decision Control Statement

Decision Control Statement

C has three major decision making instructions— the if statement, the if-else statement, and the switch statement. The if Statement It is used to execute an instruction or sequence or block of instructions only if a conditioned is fulfilled. The syntax is as follows: if (condition) statement; Here condition is the expression that is to be evaluated. If this condition is true,…

Variables

Variables

Variables A variable is a named location in memory that is used to hold a value that can be modified by the program. All variable must be declared before they can be used. The general form of a declaration is type variable_list; Here, type must be a valid data type plus any modifiers, and variable_list may…

Introduction To C

Introduction

A Brief History Of C   C was invented and first implemented by Dennis Ritchie on a DEC PDP-11 that used the Unix operating system. C is the result of a development process that started with an older language called BCPL. For many years, the de facto standard for C was the version supplied with…

Data Type And Storage And Keywords

Data type and storage

To store data inside the computer we need to first identify the type of data elements we need in our program. There are several different types of data, which may be represented differently within the computer memory. The data type specifies two things: Permissible range of values that it can store. Memory requirement to store a data type….

Comments in C

Comments

Comments in C Comments in C language are used to provide information about lines of code. It is widely used for documenting code. There are 2 types of comments in the C language. Single Line Comments Multi-Line Comments Single Line Comments Single line comments are represented by double slash \\. Let’s see an example of…

Dart Introduction | Dart programming language

Dart Introduction Dart is a scalable language that you can use to write simple scripts or full featured apps. Whether you’re creating a mobile app, web app, command-line script, or server-side app, there’s a Dart solution for that.Dart has become a general purpose language that is optimized for web and mobile development. Dart is a…

Dart Data type | Dart Tutorial

Dart Data type Variables can store data of different types, and different data types can do different things. Dart supports the following data types: numbers strings booleans lists (also known as arrays) maps runes (for expressing Unicode characters in a string) symbols Dart String A string is a sequence of characters, You can use either single…

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.