C lecture 4 nested loops and jumping statements slideshareGagan Deep
Nested Loops and Jumping Statements(Loop Control Statements), Goto statement in C, Return Statement in C Exit statement in C, For Loops with Nested Loops, While Loop with Nested Loop, Do-While Loop with Nested Loops, Break Statement, Continue Statement : visit us at : www.rozyph.com
C lecture 4 nested loops and jumping statements slideshareGagan Deep
Nested Loops and Jumping Statements(Loop Control Statements), Goto statement in C, Return Statement in C Exit statement in C, For Loops with Nested Loops, While Loop with Nested Loop, Do-While Loop with Nested Loops, Break Statement, Continue Statement : visit us at : www.rozyph.com
Constructors, Destructors, call in parameterized Constructor, Multiple constructor in a class, Explicit/implicit call, Copy constructor, Dynamic Constructors and call in parameterized Constructor
Constructors are special class functions which performs initialization of every object. The Compiler calls the Constructor whenever an object is created. Destructor on the other hand is used to destroy the class object.
Input refers to accepting data while output refers to presenting data. Normally the data is accepted from keyboard and is outputted onto the screen.
C language has a series of standard input-output (I/O) functions. Such I/O functions together form a library named stdio.h. Irrespective of the version of C language, user will have access to all such library functions. These library functions are classified into three broad categories.
a) Console I/O functions : Functions which accept input from keyboard and produce output on the screen.
b) Disk I/O functions : Functions which perform I/O operations on secondary storage devices like floppy disks or hard disks.
c) Port I/O functions : Functions which perform I/O operations on various ports like printer port, mouse port, etc.
Console I/
Constructors, Destructors, call in parameterized Constructor, Multiple constructor in a class, Explicit/implicit call, Copy constructor, Dynamic Constructors and call in parameterized Constructor
Constructors are special class functions which performs initialization of every object. The Compiler calls the Constructor whenever an object is created. Destructor on the other hand is used to destroy the class object.
Input refers to accepting data while output refers to presenting data. Normally the data is accepted from keyboard and is outputted onto the screen.
C language has a series of standard input-output (I/O) functions. Such I/O functions together form a library named stdio.h. Irrespective of the version of C language, user will have access to all such library functions. These library functions are classified into three broad categories.
a) Console I/O functions : Functions which accept input from keyboard and produce output on the screen.
b) Disk I/O functions : Functions which perform I/O operations on secondary storage devices like floppy disks or hard disks.
c) Port I/O functions : Functions which perform I/O operations on various ports like printer port, mouse port, etc.
Console I/
It is an attempt to make the students of IT understand the basics of programming in C in a simple and easy way. Send your feedback for rectification/further development.
Fundamental of C Programming Language and Basic Input/Output Functionimtiazalijoono
Fundamental of C Programming Language
and
Basic Input/Output Function
contents
C Development Environment
C Program Structure
Basic Data Types
Input/Output function
Common Programming Error
C Programming Language is the most popular computer language and most used programming language till now. It is very simple and elegant language. This lecture series will give you basic concepts of structured programming language with C.
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
Ethnobotany and Ethnopharmacology:
Ethnobotany in herbal drug evaluation,
Impact of Ethnobotany in traditional medicine,
New development in herbals,
Bio-prospecting tools for drug discovery,
Role of Ethnopharmacology in drug evaluation,
Reverse Pharmacology.
We all have good and bad thoughts from time to time and situation to situation. We are bombarded daily with spiraling thoughts(both negative and positive) creating all-consuming feel , making us difficult to manage with associated suffering. Good thoughts are like our Mob Signal (Positive thought) amidst noise(negative thought) in the atmosphere. Negative thoughts like noise outweigh positive thoughts. These thoughts often create unwanted confusion, trouble, stress and frustration in our mind as well as chaos in our physical world. Negative thoughts are also known as “distorted thinking”.
3. INTRODUCTION
C Does not contain any build in function in input and output function.
C carrys input and output operations in library function like printf() and scanf().
In standared I/O operations include header file called stdio.h
C program using must begin with the statement
4. FUNCTIONS
1. Scanf( )
2. Printf( )
3. Getchar( )
4. Putchar( )
5. Gets( )
6. Puts( )
This all functions are transfers data between computers and standard I/O devices
like monitors and keyboard
5. UNFORMETTED I/O FUNCTIONS
Getchar( ):-
It is used to accept a single character using library function in a c program
syntax:- variable_name=getchar( );
Putchar( ):-
single characters can be displayed using the library function putchar( ).
syntax:- putchar(variable_name);
Gets( ):-
This function is used to read a string from the keyboard if input device is not specified.
syntax:- gets(string);
6. Puts( ):-
It is used to print sting type of data.it also takes single arguments.
syntax:- puts(expression);
7. FORMATTED TNPUT with (scanf( ))
The scanf() function is used to input data in a formatted manner.
syntax:- scanf(“control string”,list of address of variables);
or
scanf(“control sting”,&var1,&var2,…………….,&varn);
In c to represent an address of any location an ampersand(&)is used.
Scanf() ignores all leading spaces,blanks,tabs,newlines etc.
Scanf() can also used to read a sting of characters.
8. FORMAT OF DATA TYPE CHARACTER IN
SCANF( ).
DATA TYPE
INTEGER integer
short
short unsigned
long
long assigned
hexadecimal
long hexa
octal
REAL float,double
CHARACTER
STING
FORMAT
%d
%d
%u
%id
%iu
%x
%ix
%o(letter 0)
%f,%if,%g
%c
%s
9. FORMATTED OUTPUT WITH (printf( )).
C provides inbuilt function in library stdio.h known as printf( )
The printf() moves data from computers memory to standard output device
syntax:- printf(“control string”,var1,var2,………,var n);
The control sting entries are usually separated by spaces and precedence.
10. FORMAT OF DATA TYPE CONVERSION IN
PRINTF( ).
DATA TYPE
INTEGER integer
short
short unsigned
long
long assigned
hexa
long hexa
octal
long octal
REAL float
double
Character
string
FORMAT
%d
%d
%u
%id
%iu
%x
%ix
%o(letter 0)
%io
%f,%g
%if,%e,%e
%c
%s
11. PRINTING INTEGERS
PRINTING INTEGER:-
An integer is a whole number ,when field width specified is greater
than the number,leading blanks are included.
when the field width is not specified or when the width is less than
the number to be printed.
%wd right justifies the output
%-wd left justifies the output
%0wd right justifies the output
13. PRINTING A SINGLE CHARACTER
Single characters can be printed in the required position by using the format.
%wc gives right justified output
%-wc gives left justified output
ex:-
char ch=‘A’
printf(“%5c%c”,ch,ch);
output:-
A A
%c or %wc
14. PRINTNG STRING
Stings are generally printed using the format
%ws leads to left justified output
%-ws leads to right justified output
Escape sequence (tab space) can be used to insert space between outputs.
%s or %ws
Printf(“%s”,name);
Printf(“%10s”,name);
Printf(“%20s”,name);
Printf(“-20”,name);
15. SOFTWARE ENGINEERING
1) Program documentation has 2 levels are:-
a) General documentation:-
it starts at the beginning of any program containing the following
commet statements:
1. name.
2. Name of auther.
3. Data of first version written
b) Modular documentation:-
it consists of brief description using comments for every block
code.each block code must be separated by a blank line.
16. 2) Data names:-
1. Dataname must be as close as possible to the general terminology used.
2. Dataname must not be too short or abbreviated so much that they lose their
identity.
3. In long datanames the first letter of each word can be capitalized such as ProductID
4. Do not create datanames that are too similar especially when there Is difference of only
one or two letters.
5. try to avoid using generic datanames such as sum,total,emp etc.