C Programming/Strings. A string in C is merely an array of characters. The length of a string is determined by a terminating null character: '-' . So, a string with the contents, say, "abc" has four characters: 'a' , 'b' , 'c' , and the terminating null character.
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/
C Programming/Strings. A string in C is merely an array of characters. The length of a string is determined by a terminating null character: '-' . So, a string with the contents, say, "abc" has four characters: 'a' , 'b' , 'c' , and the terminating null character.
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/
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
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.
C is a powerful general-purpose programming language. It can be used to develop software like operating systems, databases, compilers, and so on. C programming is an excellent language to learn to program for beginners.
C is a high level programming language developed by Dennis Ritchie in 1972 at AT and T Bell Laboratories, New Jersey, USA to develop the UNIX operating system.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
How to Split Bills in the Odoo 17 POS ModuleCeline George
Bills have a main role in point of sale procedure. It will help to track sales, handling payments and giving receipts to customers. Bill splitting also has an important role in POS. For example, If some friends come together for dinner and if they want to divide the bill then it is possible by POS bill splitting. This slide will show how to split bills in odoo 17 POS.
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.
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
Andreas Schleicher presents at the OECD webinar ‘Digital devices in schools: detrimental distraction or secret to success?’ on 27 May 2024. The presentation was based on findings from PISA 2022 results and the webinar helped launch the PISA in Focus ‘Managing screen time: How to protect and equip students against distraction’ https://www.oecd-ilibrary.org/education/managing-screen-time_7c225af4-en and the OECD Education Policy Perspective ‘Students, digital devices and success’ can be found here - https://oe.cd/il/5yV
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!
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
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.
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
Basic phrases for greeting and assisting costumers
MANAGING INPUT AND OUTPUT OPERATIONS IN C MRS.SOWMYA JYOTHI.pdf
1. MANAGING INPUT AND OUTPUT OPERATIONS
REFERENCE: PROGRAMMING IN C BY BALAGURUSWAMY
MRS. SOWMYA JYOTHI, SDMCBM, MANGALORE
2. The operations which took place in order to take data and make
the display of the processed information are known as input &
output operations.
In C language, in general, user use scanf and printf functions for
input and output purpose respectively. The proper uses of these
functions are termed management of input & output operation.
There are also many functions which are used in C programming.
There exists several functions in ‘C’ language that can carry out
input output operations. These functions are collectively known
as standard Input/Output Library. Each program that uses
standard input / out put function must contain the statement.
3. Reading a character:
The basic operation done in input output is to read a characters from the
standard input device such as the keyboard and to output or writing it to
the output unit usually the screen.
The getchar function can be used to read a character from the standard
input device. This can also be done with the help of the scanf function.
The getchar has the following form.
variable name = getchar( );
variable name is a valid ‘C’ variable, that has been declared already and
that possess the type char.
4. # include < stdio.h >
void main ( )
{
char ch;
printf (“Type one character:”) ;
ch = getchar() ;
printf (” The character you typed is = %c”, ch) ;
}
5. Writing a character:-
The putchar function which in analogus to getchar function can be
used for writing characters one at a time to the output terminal.
The general form is
putchar (variable name);
Where variable is a valid C type variable that has already been declared
Ex:- putchar(ch);
Displays the value stored in variable C to the standard screen.
6. #include < stdio.h >
void main ( )
{
char in;
printf (” please enter one character”);
in = getchar ( ) ;
putchar (in);
}
7. Character test functions
C supports some character test functions that are contained in the file ctype.h and therefore the
statement. #include<ctype.h> must be included in the program.
Function Test
isalnum(c) is c an alphanumeric character
isalpha(c) is c an alphabetic character
isdigit(c) is c a digit
islower(c) is c a lowercase letter
isprint(c) is c a printable character
isupper(c) Is c an uppercase letter
ispunct(c) Is c a punctuation mark
isspace(c) Is c a white space character
8. Formatted Input:
The formatted input refers to input data that has been arranged in a
particular format. Input values are generally taken by using the scanf
function.
The scanf function has the general form:-
scanf (“control string”, arg1, arg2, arg3 ………….argn);
The format field is specified by the control string and the arguments arg1,
arg2, …...,argn specifies the address of location where address is to be
stored.
The control string specifies the field format which includes format
specifications and optional number specifying field width and the
conversion character % and also blanks, tabs and newlines.
The Blanks tabs and newlines are ignored by compiler. The
conversion character % is followed by the type of data that is to be assigned
to variable of the assignment. The field width specifier is optional.
9. Inputting Integer Numbers:-
The general format for reading a integer number is
% wd
Here percent sign (%) denotes that a specifier for conversion follows
and
w is an integer number which specifies the width of the field of the number
that is being read. The data type character d indicates that the number should
be read in integer mode.
10. Example : scanf (“%3d %4d”, &sum1, &sum2);
If the values input are 175 and 1342 here value 175 is assigned to sum1
and 1342 to sum 2.
Suppose the input data was follows 1342 and 175.
The number 134 will be assigned to sum1 and sum2 has the value 2
because of %3d the number 1342 will be cut to 134 and the remaining part is
assigned to second variable sum2.
If floating point numbers are assigned then the decimal or fractional part is
skipped by the computer.
To read the long integer data type we can use conversion specifier % ld & % hd
for short integer.
11. Inputting real numbers:
Unlike integer numbers, field specifications are not to be used
while representing a real number therefore real numbers are specified
in a straight forward manner using % f specifier.
The general format of specifying a real number input is
scanf (“% f “, &variable);
Example: scanf (“%f %f % f”, &a, &b, &c);
With the input data 321.76, 4.321, 678. The values 321.76 is assigned
to a , 4.321 to b & 678 to C.
If the number input is a double data type then the format specifier
should be % lf instead of %f.
12. Inputting character strings:
Single character or strings can be input by using the character
specifiers.
The general format is % wc or %ws
Where c and s represents character and string respectively and w
represents the field width.
The address operator need not be specified while we input
strings.
The specification %s terminates reading at the encounter of a
blank space.
13. Example : scanf (“%c %15s”, &ch, name):
Some versions of scanf support the following conversion specifications
for strings:-
%[characters]
%[^characters]
The specification %[characters] means that only the characters
specified within the brackets are permissible in the output string. If
the input string contains any other character, the string will be
terminated at the first encounter of such a character.
The specification %[^characters] does not permit the characters
specified after the circumflex(^) in the input string.
14. Reading mixed Data types:-
scanf statement can also be used to input a data line
containing mixed mode data.
For example:
scanf(“%d %c %f %s”, &count, &code, &ratio, name};
15. Formatted Output:-
Printf function is used to produce the outputs in such a way that they are
understandable and are in an easy to use form.
The general form of printf statement is
printf(“control string”, &arg1,&arg2,……….argn);
Control string consists of 3 types of items:
•Characters that will be printed on the screen as they appear.
•Format specifications that define the output format for display of each item.
•Escape sequence characters such as n, t and b.
The arguments arg1, arg2,……argn are the variables whose values are
formatted and printed according to the specifications of the control string.
16. A simple format specification has the following form:
% w.p type-specifier
Where w is an integer number that specifies the total
number of columns for the output value and
p is another integer number that specifies the number of digits
to the right of the decimal point or the number of characters to
be printed from a string.
A newline can be introduced by the help of a newline character.
For example:- printf (“Enter 2 numbers”);
17. For example
#include < stdio.h >
main ( )
{
printf (“Hello!”);
printf (“Welcome to the world of Engineering!”);
}
Output:
Hello! Welcome to the world of Engineering.
For Example :
printf (“Hello!n”);
OR
printf (“n Welcome to the world of Engineering”);
18. Output of integer numbers:-
The format specification for printing an integer number is
%wd
Where
w specifies the minimum field width for the output.
d specifies that the value to be printed is an integer.
19. For example:
printf(“%d”,9876);
printf(“%6d”, 9876)
printf(“%2d”, 9876);
printf(“%-6d”, 9876);
printf(“%06d”, 9876);
It is possible to force the printing to be left-justified by placing a
minus sign directly after the % character.
It is also possible to place zeroes before the field width as
shown in the last example.
20. Output of Real Numbers:-
The output of a real number may be displayed in decimal notation using
the following format specification:
% w.pf
The integer w indicates the minimum number of positions that are to
be used for the display of the value and the integer p indicates the number
of digits to be displayed after the decimal point.
The value, when displayed, is rounded to p decimal places and printed right-
justified in the field of w columns. Leading blanks and trailing zeros will
appear as necessary. The default precision is 6 decimal places. The negative
numbers will be printed with the minus sign.
y=98.7654
22. Printing a single character:-
A single character can be displayed in a desired position using
the format:
%wc
The character will be displayed right-justified in the field of w
columns. We can make the display left-justified by placing a minus
sign before the integer w.
The default value for w is 1.
23. Printing of Strings:-
The format specification for outputting strings is similar to
that of real numbers that is
%w.ps
Where w specifies the field width for display and p instructs that
only the first p characters of the string are to be displayed. The
display is right-justified.
For example: Printing the string “NEW DELHI 110001”.
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
6 7 8 9 0
25. Mixed Data Output:-
It is permitted to mix data types in one printf statement.
For example:-
printf(%d %f %s %c”, a, b, c, d);
printf uses its control string to decide how many variables
to be printed and what their types are. Therefore, the
format specifications should match the variables in
number, order, and type.
26. Specifier Meaning
%c – Print a character
%d – Print a Integer
%i – Print a Integer
%e – Print float value in exponential form.
%f – Print float value
%g – Print using %e or %f whichever is smaller
%o – Print actual value
%s – Print a string
%x – Print a hexadecimal integer (Unsigned) using lower case a – F
%X – Print a hexadecimal integer (Unsigned) using upper case A – F
%a – Print a unsigned integer.
%p – Print a pointer value
%hx – hex short
%lo – octal long
%ld – long