-
Ranjani R started the topic Pointers in c in the forum C Programming 2 years, 5 months ago
Pointers are one of the core components of the C programming language. A pointer can be used to store the memory address of other variables, functions, or even other pointers. The use of pointers allows low-level memory access, dynamic memory allocation, and many other functionality in C.
In this article, we will discuss pointers in detail, their…[Read more]
-
Ranjani R started the topic Storage classes in c in the forum C Programming 2 years, 5 months ago
Storage Classes in C
C Storage Classes are used to describe the features of a variable/function. These features basically include the scope, visibility, and lifetime which help us to trace the existence of a particular variable during the runtime of a program.C language uses 4 storage classes, namely:
storage classes in c
1. auto
This is the…[Read more] -
Ranjani R started the topic Recursive function in the forum C Programming 2 years, 5 months ago
Recursion:
In programming terms, a recursive function can be defined as a routine that calls itself directly or indirectly.
Using the recursive algorithm, certain problems can be solved quite easily. Towers of Hanoi (TOH) is one such programming exercise. Try to write an iterative algorithm for TOH. Moreover, every recursive program can be written…[Read more] -
Ranjani R started the topic C Function Arguments and Function Return Values in the forum C Programming 2 years, 5 months ago
C Function Arguments and Function Return Values
function in C can be called either with arguments or without arguments. These functions may or may not return values to the calling functions. All C functions can be called either with arguments or without arguments in a C program. Also, they may or may not return any values. Hence the function…[Read more]
-
Ranjani R started the topic Function basics in the forum C Programming 2 years, 5 months ago
C Functions
In this tutorial, you will be introduced to functions (both user-defined and standard library functions) in C programming. Also, you will learn why functions are used in programming.Video: C functions
A function is a block of code that performs a specific task.
Suppose, you need to create a program to create a circle and color it.…[Read more]
-
Ranjani R started the topic Goto statement in c in the forum C Programming 2 years, 5 months ago
goto Statement in C
The C goto statement is a jump statement which is sometimes also referred to as an unconditional jump statement. The goto statement can be used to jump from anywhere to anywhere within a function.Syntax:
Syntax1 | Syntax2
—————————-
goto label; | label:
. | .
. |…[Read more] -
Ranjani R started the topic Continue Statement in c in the forum C Programming 2 years, 5 months ago
Continue Statement in C
The continue statement in C is a jump statement that is used to bring the program control to the start of the loop. We can use the continue statement in the while loop, for loop, or do..while loop to alter the normal flow of the program execution. Unlike break, it cannot be used with a C switch case.What is continue in…[Read more]
-
Ranjani R started the topic Break statement in c in the forum C Programming 2 years, 5 months ago
Break Statement in C
The break statement is one of the four jump statements in the C language. The purpose of the break statement in C is for unconditional exit from the loopWhat is break in C?
The break in C is a loop control statement that breaks out of the loop when encountered. It can be used inside loops or switch statements to bring the…[Read more] -
Ranjani R started the topic Nested loop in c in the forum C Programming 2 years, 5 months ago
A loop inside another loop is called a nested loop. The depth of nested loop depends on the complexity of a problem. We can have any number of nested loops as required. Consider a nested loop where the outer loop runs n times and consists of another loop inside it. The inner loop runs m times. Then, the total number of times the inner loop runs…[Read more]
-
Ranjani R started the topic Conditional operator in c in the forum C Programming 2 years, 5 months ago
Conditional Operator in C
The conditional operator in C programming language, as well as its syntax and operation, will be covered in this article. We’ll also see when the if-else condition should be used instead of the conditional operator. The only ternary operator in the C programming language is the conditional operator. If the “if else” h…[Read more]
-
Ranjani R started the topic Nested switch statement in c in the forum C Programming 2 years, 5 months ago
Nested switch statement in C++
Switch-case statements: These are a substitute for long if statements that compare a variable to several integral valuesThe switch statement is a multiway branch statement. It provides an easy way to dispatch execution to different parts of code based on the value of the expression.
Switch is a control statement…[Read more] -
Ranjani R started the topic FAQs on C switch Statement in the forum C Programming 2 years, 5 months ago
1. What is the switch case in C?
The switch case statement is a flow control statement in which we can define a switch variable and then execute different code based on the value of the switch variable. It is an alternative of if else if ladder.2. What is the case in the switch statement in C?
The case keyword is used to define the different…[Read more] -
Ranjani R started the topic Switch statement in c in the forum C Programming 2 years, 5 months ago
Switch Statement in C
Switch case statement evaluates a given expression and based on the evaluated value(matching a certain condition), it executes the statements associated with it. Basically, it is used to perform different actions based on different conditions(cases).Switch case statements follow a selection-control mechanism and allow a…[Read more]
-
Ranjani R started the topic Nested if statement in c in the forum C Programming 2 years, 5 months ago
It is always legal in C programming to nest if-else statements, which means you can use one if or else if statement inside another if or else if statement(s).
Syntax
The syntax for a nested if statement is as follows −if( boolean_expression 1) {
/* Executes when the boolean expression 1 is true */
if(boolean_expression 2) {
/* E…[Read more] -
Ranjani R started the topic Decision Making in C Programming in the forum C Programming 2 years, 5 months ago
Decision Making in C Programming
The decision making statements in C language are used to perform operations on the basis of condition and when program encounters the situation to choose a particular statement among many statements.
Decision making statements lets you evaluate one or more conditions and then take decision whether to execute a…[Read more]
-
Ranjani R started the topic Do-While loop in the forum C Programming 2 years, 5 months ago
do-while Loop
The do-while loop is similar to a while loop but the only difference lies in the do-while loop test condition which is tested at the end of the body. In the do-while loop, the loop body will execute at least once irrespective of the test condition.
Syntax:
initialization_expression;
do
{
// body of do-while loop…[Read more] -
Ranjani R started the topic While loop in the forum C Programming 2 years, 5 months ago
While Loop
While loop does not depend upon the number of iterations. In for loop the number of iterations was previously known to us but in the While loop, the execution is terminated on the basis of the test condition. If the test condition will become false then it will break from the while loop else body will be…[Read more] -
Ranjani R started the topic C-loop in the forum C Programming 2 years, 5 months ago
Loops in programming are used to repeat a block of code until the specified condition is met. A loop statement allows programmers to execute a statement or group of statements multiple times without repetition of code.
// C program to illustrate need of loops
#include <stdio.h>int main()
{
printf( “Hello Worldn”);
printf( “Hello…[Read more] -
Ranjani R started the topic Handout in MS power point in the forum C++ 2 years, 5 months ago
The Handout Master
Masters are boilerplates, and everything is duplicated based on elements existing in the master. Thus, if you position any logo in the Handout Master, you can be reasonably sure that all handouts in that particular presentation will contain the logo in the same position.Unlike slides, handouts are almost always intended for…[Read more]
-
Ranjani R started the topic About hangouts in the forum C++ 2 years, 5 months ago
About Handouts
Handouts are basically thumbnails of slides printed together on a sheet of paper. Such layouts can be customized to suit specific requirements. By default, PowerPoint offers choices to include 1, 2, 3, 4, 6 and 9 slide thumbnails per handout page. Some layouts, such as the one for 3 thumbnails also provide some space next to the…[Read more] - Load More
