C Theory Notes
C Theory Notes
What is a Flowchart?
A flowchart is a type of diagram that represents a workflow or process. A
flowchart can also be defined as a diagrammatic representation of an
algorithm, a step-by-step approach to solving a task.
Difference between Break and Continue
reak and continue statement:
Break Statement Continue Statement
While Do While
This loop will execute the statement(s)
It checks the condition first and
at least once, then the condition is
then executes statement(s)
checked.
example.
#include <stdio.h>
int main()
{
for(;;)
{
printf("Hello javatpoint");
}
}
C String Functions
What is getch() in C?
The getch() is a predefined non-standard function that is defined in conio.h
header file. It is mostly used by the Dev C/C++, MS- DOS's compilers like
Turbo C to hold the screen until the user passes a single value to exit from
the console screen.
getch vs getche
getch is a C function to read a getche is a C function to read
single character from the a single character from the
keyboard which does not display keyboard which displays
on screen and immediately immediately on screen
returned without waiting for the without waiting for the enter
enter key. key.
Syntax
Changing the value of a member will Changing the value of one member
not affect other variables members. will also affect other variables
members.