The document discusses strings in C programming language. It provides details about:
- Strings are arrays of characters terminated by a null character '\0'.
- Common functions to declare, initialize, print and manipulate strings like strlen(), strcpy(), strcat(), strcmp() etc.
- Important points about receiving and processing multi-word strings using scanf(), gets() and puts().
- Implementation of some string handling functions like xstrlen(), xstrcpy() to demonstrate their working.
This document provides an overview of string handling in C programming. It discusses how strings are represented as character arrays and terminated with a null character. It describes declaring, initializing, and manipulating strings through built-in string functions like strlen(), strcpy(), strcmp(), strcat(), strlwr(), and strrev(). Examples are given to illustrate how each string function works and how to use them to process strings as complete entities.
This document discusses string handling in C++. It defines a string as a collection of characters written in double quotation marks. Strings can be declared and initialized similarly to character arrays. The cin object and cin.getline() function can be used to input strings with or without spaces. Arrays of strings are two-dimensional character arrays that store multiple strings. Common string functions include memcpy() to copy characters, strcmp() to compare strings, strcpy() to copy one string to another, strlen() to find the length of a string, and strcat() to concatenate two strings.
This document provides information about strings in C++. It defines a string as a collection of characters within double quotes. Strings are stored as character arrays terminated by a null character. The document discusses declaring and initializing strings, inputting strings from the user, and functions for manipulating strings like strcat(), strcmp(), and memcpy(). It also covers arrays of strings and comparing, concatenating, copying and other operations on strings.
The document discusses strings in C and C++. It explains that strings are not a built-in data type in C/C++ and describes C-style strings as character arrays terminated by a null character. It also discusses C++ string classes like std::string. The document provides examples of using C-style strings and C++ strings. It describes common string functions in C++ for manipulating and comparing strings.
This document provides an overview of common string operations in C++, including how to declare and initialize strings, access individual characters, compare strings, append to strings, search within strings, and convert between C++ strings and C-style character arrays. It also describes some additional string utility functions provided in the CS106 library like converting case and converting between strings and numbers.
This document provides an overview of string handling functions in C programming. It discusses how to declare strings, compare strings, concatenate strings, copy strings, and manipulate strings using pre-defined functions from the string.h header file. Examples are given for common string functions like strlen(), strcmp(), strcpy(), strcat(), etc. to illustrate how each function works and what it returns.
The document discusses strings in C++. It defines strings, describes how to declare and manipulate string objects using the string class in C++, and lists common string operations like concatenation, comparison, extracting substrings, searching/finding patterns, and inserting/replacing/deleting substrings. It also discusses how to work with C-style strings using functions in the <strings.h> library and character functions in <ctype.h>.
1) A string is a one-dimensional array of characters terminated by a null character. Strings are declared using char arrays or string literals.
2) There are two ways to declare and initialize strings in C: using a char array and specifying the size, or using a string literal which automatically inserts a null terminator.
3) Common string functions include strlen() to return the length, strcpy() to copy one string to another, strcat() to concatenate strings, and strcmp() to compare two strings.
This document provides an overview of standard C library functions for handling strings and characters. It discusses functions for string input/output, conversion, manipulation, comparison, searching, and memory operations. Examples are given to demonstrate the use of functions like strcpy(), strcmp(), strtok(), memmove(), and strerror(). The document is intended to introduce common string and memory handling techniques used in applications like word processors, layout software, and typesetting programs.
String in programming language in c or c++ Samsil Arefin
This document discusses strings in C programming. It defines strings as arrays of characters terminated by a null character. Strings can be declared as character arrays or using string pointers. Functions like strlen(), strcpy(), strcat() are described which operate on strings. Examples are given to find the frequency of characters, number of vowels/consonants, reversing a string, sorting strings, and concatenating strings. The strcat() function is explained in detail, with an example program demonstrating how it concatenates two strings.
1. A string is a one-dimensional array of characters terminated by a null character. Strings can be initialized during compilation or at runtime.
2. Common string functions like scanf(), gets(), getchar() are used to input strings while printf(), puts(), putchar() are used to output strings.
3. Library functions like strcpy(), strcat(), strcmp(), strlen() allow manipulation of strings like copying, concatenation, comparison and finding length.
The document discusses strings in C programming. It defines strings as sequences of characters stored as character arrays that are terminated with a null character. It covers string literals, declaring and initializing string variables, reading and writing strings, and common string manipulation functions like strlen(), strcpy(), strcmp(), and strcat(). These functions allow operations on strings like getting the length, copying strings, comparing strings, and concatenating strings.
A string is a data type used in programming, such as an integer and floating point unit, but is used to represent text rather than numbers. It is comprised of a set of characters that can also contain spaces and numbers. For example, the word "hamburger" and the phrase "I ate 3 hamburgers" are both strings.
A string in C is an array of characters that ends with a null character '\0'. Strings are stored in memory as arrays of characters with the null character added to the end. Common string operations in C include declaring and initializing strings, reading strings from users, and built-in string handling functions like strlen(), strcpy(), strcat(), and strcmp().
This document discusses the StringBuffer and StringBuilder classes in Java. It explains that StringBuffer can be used to create mutable strings, while StringBuilder is similar but non-synchronized. It outlines several key methods for each class, such as append(), insert(), reverse(), substring(), and describes how to construct and manipulate string objects in Java.
This document discusses strings in C++. It defines a string as a sequence of characters and provides examples of single character constants like 'h' and string constants like "hello". It describes two ways to declare strings in C++ - using a C-style character array or the standard string class. It also demonstrates different ways to initialize and copy strings, including using string constants, character constants, the length operator, and user input. Finally, it lists some common string functions like strcpy(), strcat(), strlen(), and strcmp().
This document discusses strings in C++. It begins by explaining that strings are stored as character arrays terminated by a null character. It then covers declaring and initializing strings, accessing characters within strings, inputting and outputting strings using cin, gets(), and getline(), and comparing and copying strings. The document also discusses two-dimensional character arrays for storing arrays of strings. It provides examples of initializing, inputting, and displaying 2D string arrays.
This document discusses strings in C programming. It explains that a string in C is an array of characters that ends with a null character. Common string functions like strcpy(), strcat(), strcmp() are presented for copying, concatenating, and comparing strings. The document also discusses declaring and initializing string variables, storing strings in memory, input/output of strings, and justification of strings using printf(). Library functions for manipulating strings from the string.h header file are described.
This document discusses handling of character strings in C programming. It covers declaring and initializing string variables as character arrays, reading strings from the terminal using scanf() and gets(), writing strings to the screen using printf() and puts(), performing arithmetic operations and comparisons on characters, concatenating strings, and commonly used string handling functions like strcpy(), strcat(), and strcmp().
This document provides an overview of common string functions in C including strcmp(), strcat(), strcpy(), and strlen(). It defines each function, explains what it is used for, provides the syntax, and includes examples of how each string function works in C code. Overall, the document is a tutorial on the most common string manipulation functions available in the standard C string library.
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.
This document provides an overview of string manipulation in C++. It discusses C-style strings and introduces C++ strings as objects of the string class. It describes various string constructors, functions for comparison, concatenation, insertion, extraction and other operations. Examples are given to demonstrate the use of functions like length(), capacity(), empty(), at(), find(), assign(), begin() and end(). The document is intended as a lecture on object-oriented string handling in C++.
This document provides an overview of string operations in C including:
- How strings are stored in memory with a null terminator
- Input and output of strings using scanf and printf
- Common string library functions like strcpy, strcat, and strlen
- Examples of justifying and manipulating strings
Strings are arrays of characters that are null-terminated. They can be manipulated using functions like strlen(), strcpy(), strcat(), and strcmp(). The document discusses initializing and reading strings, passing strings to functions, and using string handling functions to perform operations like copying, concatenating, comparing, and reversing strings. It also describes arrays of strings, which are 2D character arrays used to store multiple strings. Examples are provided to demonstrate reading and sorting arrays of strings.
This document discusses strings and classes in C++. It explains that classes allow programmers to create new types of variables, similar to how functions allow creating new operations. Strings are an example of a built-in class in C++. The document outlines various functions that can be used to manipulate strings, such as length(), size(), concatenation (+) and getline() to read a whole string including whitespace. It also explains using "dot" functions to call methods on a specific string object.
This document discusses handling character strings in C. It describes declaring string variables as character arrays with size equal to maximum length plus one for null character. Strings can be read using scanf with %s and written using printf with %s. Common string functions are described, including strcat to concatenate strings, strcmp to compare strings, strcpy to copy strings, and strlen to determine string length.
This document discusses handling of character strings in C. It explains that a string is a sequence of characters stored in memory as ASCII codes appended with a null terminator. It describes common string operations in C like reading, displaying, concatenating, comparing and extracting substrings. It also discusses functions like strlen(), strcat(), strcmp(), strcpy() for performing various operations on strings.
The document discusses strings in C++. It defines strings, describes how to declare and manipulate string objects using the string class in C++, and lists common string operations like concatenation, comparison, extracting substrings, searching/finding patterns, and inserting/replacing/deleting substrings. It also discusses how to work with C-style strings using functions in the <strings.h> library and character functions in <ctype.h>.
1) A string is a one-dimensional array of characters terminated by a null character. Strings are declared using char arrays or string literals.
2) There are two ways to declare and initialize strings in C: using a char array and specifying the size, or using a string literal which automatically inserts a null terminator.
3) Common string functions include strlen() to return the length, strcpy() to copy one string to another, strcat() to concatenate strings, and strcmp() to compare two strings.
This document provides an overview of standard C library functions for handling strings and characters. It discusses functions for string input/output, conversion, manipulation, comparison, searching, and memory operations. Examples are given to demonstrate the use of functions like strcpy(), strcmp(), strtok(), memmove(), and strerror(). The document is intended to introduce common string and memory handling techniques used in applications like word processors, layout software, and typesetting programs.
String in programming language in c or c++ Samsil Arefin
This document discusses strings in C programming. It defines strings as arrays of characters terminated by a null character. Strings can be declared as character arrays or using string pointers. Functions like strlen(), strcpy(), strcat() are described which operate on strings. Examples are given to find the frequency of characters, number of vowels/consonants, reversing a string, sorting strings, and concatenating strings. The strcat() function is explained in detail, with an example program demonstrating how it concatenates two strings.
1. A string is a one-dimensional array of characters terminated by a null character. Strings can be initialized during compilation or at runtime.
2. Common string functions like scanf(), gets(), getchar() are used to input strings while printf(), puts(), putchar() are used to output strings.
3. Library functions like strcpy(), strcat(), strcmp(), strlen() allow manipulation of strings like copying, concatenation, comparison and finding length.
The document discusses strings in C programming. It defines strings as sequences of characters stored as character arrays that are terminated with a null character. It covers string literals, declaring and initializing string variables, reading and writing strings, and common string manipulation functions like strlen(), strcpy(), strcmp(), and strcat(). These functions allow operations on strings like getting the length, copying strings, comparing strings, and concatenating strings.
A string is a data type used in programming, such as an integer and floating point unit, but is used to represent text rather than numbers. It is comprised of a set of characters that can also contain spaces and numbers. For example, the word "hamburger" and the phrase "I ate 3 hamburgers" are both strings.
A string in C is an array of characters that ends with a null character '\0'. Strings are stored in memory as arrays of characters with the null character added to the end. Common string operations in C include declaring and initializing strings, reading strings from users, and built-in string handling functions like strlen(), strcpy(), strcat(), and strcmp().
This document discusses the StringBuffer and StringBuilder classes in Java. It explains that StringBuffer can be used to create mutable strings, while StringBuilder is similar but non-synchronized. It outlines several key methods for each class, such as append(), insert(), reverse(), substring(), and describes how to construct and manipulate string objects in Java.
This document discusses strings in C++. It defines a string as a sequence of characters and provides examples of single character constants like 'h' and string constants like "hello". It describes two ways to declare strings in C++ - using a C-style character array or the standard string class. It also demonstrates different ways to initialize and copy strings, including using string constants, character constants, the length operator, and user input. Finally, it lists some common string functions like strcpy(), strcat(), strlen(), and strcmp().
This document discusses strings in C++. It begins by explaining that strings are stored as character arrays terminated by a null character. It then covers declaring and initializing strings, accessing characters within strings, inputting and outputting strings using cin, gets(), and getline(), and comparing and copying strings. The document also discusses two-dimensional character arrays for storing arrays of strings. It provides examples of initializing, inputting, and displaying 2D string arrays.
This document discusses strings in C programming. It explains that a string in C is an array of characters that ends with a null character. Common string functions like strcpy(), strcat(), strcmp() are presented for copying, concatenating, and comparing strings. The document also discusses declaring and initializing string variables, storing strings in memory, input/output of strings, and justification of strings using printf(). Library functions for manipulating strings from the string.h header file are described.
This document discusses handling of character strings in C programming. It covers declaring and initializing string variables as character arrays, reading strings from the terminal using scanf() and gets(), writing strings to the screen using printf() and puts(), performing arithmetic operations and comparisons on characters, concatenating strings, and commonly used string handling functions like strcpy(), strcat(), and strcmp().
This document provides an overview of common string functions in C including strcmp(), strcat(), strcpy(), and strlen(). It defines each function, explains what it is used for, provides the syntax, and includes examples of how each string function works in C code. Overall, the document is a tutorial on the most common string manipulation functions available in the standard C string library.
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.
This document provides an overview of string manipulation in C++. It discusses C-style strings and introduces C++ strings as objects of the string class. It describes various string constructors, functions for comparison, concatenation, insertion, extraction and other operations. Examples are given to demonstrate the use of functions like length(), capacity(), empty(), at(), find(), assign(), begin() and end(). The document is intended as a lecture on object-oriented string handling in C++.
This document provides an overview of string operations in C including:
- How strings are stored in memory with a null terminator
- Input and output of strings using scanf and printf
- Common string library functions like strcpy, strcat, and strlen
- Examples of justifying and manipulating strings
Strings are arrays of characters that are null-terminated. They can be manipulated using functions like strlen(), strcpy(), strcat(), and strcmp(). The document discusses initializing and reading strings, passing strings to functions, and using string handling functions to perform operations like copying, concatenating, comparing, and reversing strings. It also describes arrays of strings, which are 2D character arrays used to store multiple strings. Examples are provided to demonstrate reading and sorting arrays of strings.
This document discusses strings and classes in C++. It explains that classes allow programmers to create new types of variables, similar to how functions allow creating new operations. Strings are an example of a built-in class in C++. The document outlines various functions that can be used to manipulate strings, such as length(), size(), concatenation (+) and getline() to read a whole string including whitespace. It also explains using "dot" functions to call methods on a specific string object.
This document discusses handling character strings in C. It describes declaring string variables as character arrays with size equal to maximum length plus one for null character. Strings can be read using scanf with %s and written using printf with %s. Common string functions are described, including strcat to concatenate strings, strcmp to compare strings, strcpy to copy strings, and strlen to determine string length.
This document discusses handling of character strings in C. It explains that a string is a sequence of characters stored in memory as ASCII codes appended with a null terminator. It describes common string operations in C like reading, displaying, concatenating, comparing and extracting substrings. It also discusses functions like strlen(), strcat(), strcmp(), strcpy() for performing various operations on strings.
This document contains information about strings in C programming including how they are represented in memory, standard string functions like strlen(), strcpy(), strcmp(), etc. It also provides examples of using these string functions. The document discusses arrays of pointers as an alternative to 2D character arrays for storing strings to avoid memory wastage. It includes questions and answers related to strings and structures.
This document discusses string manipulation functions in C programming. It begins by explaining that string handling functions are defined in the string.h header file. It then explains six important string functions - strlen(), strcpy(), strcat(), strcmp(), strrev(), and strstr() - with examples of each. It also discusses arrays of strings and functions to convert strings to numeric data types like long int and double. In summary, the document provides an overview of common string manipulation functions in C with examples and explanations of their usage.
The document discusses strings in C++. It defines strings as arrays of characters and describes how to declare, initialize, input, and output strings. It also discusses storing multiple strings using a 2D character array. Finally, it lists and provides the syntax for various string handling functions in C++ like strcpy(), strcat(), strlen(), strcmp(), etc.
The document discusses strings in C programming. It defines strings as finite sequences of characters that can be implemented as arrays of bytes or characters. It describes common string operations like searching, sorting, trimming, insertion, and deletion. It also lists various string manipulation functions in C like strcat, strcpy, strlen, and their applications in areas like text editing, search engines, and computational biology.
The document discusses strings in C programming. It defines strings as arrays of characters terminated by a null character. It explains that string handling functions are declared in the string.h header file and are used to perform operations on strings like getting the length, concatenating, comparing, and manipulating case. Several functions are described like strlen(), strcpy(), strcat(), strcmp(), strrev(), strlwr(), strupr(). Examples are given showing how to use these functions to work with strings.
The document summarizes key concepts about Strings in Java including:
1. Strings can be created using double quotes or by converting a character array to a String.
2. The length() method returns the number of characters in a String.
3. Strings can be concatenated using the + operator or concat() method.
4. The format() method can be used to create formatted String outputs.
5. Common String methods include charAt(), compareTo(), indexOf(), and length().
This document discusses strings in C programming. It defines strings as arrays of characters that end with a null terminator (\0). It explains how to initialize and print strings. Common string functions like strlen(), strcpy(), strcat(), and strcmp() are described. The document contrasts strings and character pointers, noting strings cannot be reassigned while pointers can. Finally, it lists and briefly explains other standard string library functions.
The document discusses string operations in C, defining strings as arrays of characters with a null terminator, and covering functions for declaring, initializing, inputting, manipulating, comparing, searching, and copying strings using standard library functions like strlen(), strcpy(), strcmp(), strchr(), and more. It provides examples of using these string functions to declare, compare, concatenate, and copy strings in C code.
This document discusses handling character strings in C. It covers:
1. How strings are stored in memory as ASCII codes appended with a null terminator.
2. Common string operations like reading, comparing, concatenating and copying strings.
3. How to initialize, declare, read and write strings.
4. Useful string handling functions like strlen(), strcpy(), strcat(), strcmp() etc to perform various operations on strings.
The document discusses String handling in Java. It describes how Strings are implemented as objects in Java rather than character arrays. It also summarizes various methods available in the String and StringBuffer classes for string concatenation, character extraction, comparison, modification, and value conversion. These methods allow extracting characters, comparing strings, modifying strings, and converting between string and other data types.
The document discusses strings and StringBuffers in Java. Strings are immutable sequences of characters represented by the String class. StringBuffers allow modifying character sequences and are represented by the StringBuffer class. The summary provides an overview of common string and StringBuffer operations like concatenation, extraction, comparison, and modification.
• List is a collection, which is ordered and changeable. Allows duplicate members.
• Tuple is a collection, which is ordered and unchangeable. Allows duplicate members.
• Set is a collection, which is unordered and unindexed. No duplicate members.
• Dictionary is a collection, which is unordered, changeable and indexed. No duplicate members.
: String, List, Tuple, Dictionary
• List is a collection, which is ordered and changeable. Allows duplicate members.
• Tuple is a collection, which is ordered and unchangeable. Allows duplicate members.
• Set is a collection, which is unordered and unindexed. No duplicate members.
• Dictionary is a collection, which is unordered, changeable and indexed. No duplicate members.
This document discusses classes and objects in object-oriented analysis and design. It defines objects as having state, behavior, and identity, with similar objects defined by common classes. Classes represent groups of objects with similar behavior and structures. The relationships between classes and objects are explored, including generalization, aggregation, and association. Identification of classes and objects in analysis is discussed through various approaches like use case analysis and CRC cards. The importance of proper classification and key abstractions and mechanisms are also covered.
This document discusses the evolution of the object model in programming. It describes how programming languages have evolved from procedural to object-oriented over several generations, with each generation incorporating new features like data abstraction, modularity, and object-oriented concepts. The core elements of the object model are explained as abstraction, encapsulation, hierarchy, and modularity. Minor elements like typing, concurrency, and persistence are also discussed. Examples are given throughout to illustrate object-oriented concepts.
Chapter 1 Complexity 4
1.1 The Structure of Complex Systems 6
1.2 The Inherent Complexity of Software 8
1.3 The Five Attributes of a Complex System 11
1.4 Organized and Disorganized Complexity 12
1.5 Bringing Order to Chaos 13
1.6 On Designing Complex Systems 14
Introduction: The Structure of Complex systems, The Inherent Complexity of Software, Attributes of Complex System, Organized and Disorganized Complexity, Bringing Order to Chaos, Designing Complex Systems
fread() and fwrite() are functions used to read and write structured data from files. fread() reads an entire structure block from a file into memory. fwrite() writes an entire structure block from memory to a file. These functions allow efficient reading and writing of complex data types like structures and arrays from binary files.
1) The document discusses different types of loops in programming including pretest loops, post-test loops, counter controlled loops, and event controlled loops. It explains the concepts of loop initialization and updating.
2) Specific loop structures are discussed for the C programming language, including the while, do-while, and for loops. Examples of each loop type are provided.
3) Loops are fundamental programming constructs that allow code to be repeated until a condition is met. This document covers the core concepts of loops including initialization, testing conditions, and updating values to control loop execution.
This document discusses exact size integer types and bitwise logical operators in C programming. It defines exact size integer types like short int, int, long int and long long int. It then explains various bitwise logical operators like & (AND), | (OR), ^ (XOR), << (left shift), >> (right shift) and ~ (ones complement). Examples programs are provided to demonstrate the usage of these operators on integers. Shift operators are used to shift bits of an integer to left or right by a specified number of bits.
The document discusses different types of functions in C programming. It begins by explaining what functions are and their basic components like function name, arguments, return type, etc. It then describes the four categories of functions:
1) Functions with no arguments and no return values
2) Functions with arguments but no return values
3) Functions with arguments and return values
4) Functions with no arguments but return values
Examples of each category are provided to illustrate how they work. The document also covers other topics like library functions, user-defined functions, and differences between local and global variables.
Y. N. D. Aravind presents on functions in C programming. The presentation covers:
- The objectives of functions, parameters, arrays, and recursion.
- The definition of a function as reusable block of code that performs a specific task.
- The four categories of functions based on arguments and return values.
- Passing arguments to functions by value (copying) versus by reference (address).
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...larencebapu132
This is short and accurate description of World war-1 (1914-18)
It can give you the perfect factual conceptual clarity on the great war
Regards Simanchala Sarab
Student of BABed(ITEP, Secondary stage)in History at Guru Nanak Dev University Amritsar Punjab 🙏🙏
How to Manage Opening & Closing Controls in Odoo 17 POSCeline George
In Odoo 17 Point of Sale, the opening and closing controls are key for cash management. At the start of a shift, cashiers log in and enter the starting cash amount, marking the beginning of financial tracking. Throughout the shift, every transaction is recorded, creating an audit trail.
Title: A Quick and Illustrated Guide to APA Style Referencing (7th Edition)
This visual and beginner-friendly guide simplifies the APA referencing style (7th edition) for academic writing. Designed especially for commerce students and research beginners, it includes:
✅ Real examples from original research papers
✅ Color-coded diagrams for clarity
✅ Key rules for in-text citation and reference list formatting
✅ Free citation tools like Mendeley & Zotero explained
Whether you're writing a college assignment, dissertation, or academic article, this guide will help you cite your sources correctly, confidently, and consistent.
Created by: Prof. Ishika Ghosh,
Faculty.
📩 For queries or feedback: [email protected]
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessMark Soia
Boost your chances of passing the 2V0-11.25 exam with CertsExpert reliable exam dumps. Prepare effectively and ace the VMware certification on your first try
Quality dumps. Trusted results. — Visit CertsExpert Now: https://www.certsexpert.com/2V0-11.25-pdf-questions.html
INTRO TO STATISTICS
INTRO TO SPSS INTERFACE
CLEANING MULTIPLE CHOICE RESPONSE DATA WITH EXCEL
ANALYZING MULTIPLE CHOICE RESPONSE DATA
INTERPRETATION
Q & A SESSION
PRACTICAL HANDS-ON ACTIVITY
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsDrNidhiAgarwal
Unemployment is a major social problem, by which not only rural population have suffered but also urban population are suffered while they are literate having good qualification.The evil consequences like poverty, frustration, revolution
result in crimes and social disorganization. Therefore, it is
necessary that all efforts be made to have maximum.
employment facilities. The Government of India has already
announced that the question of payment of unemployment
allowance cannot be considered in India
Understanding P–N Junction Semiconductors: A Beginner’s GuideGS Virdi
Dive into the fundamentals of P–N junctions, the heart of every diode and semiconductor device. In this concise presentation, Dr. G.S. Virdi (Former Chief Scientist, CSIR-CEERI Pilani) covers:
What Is a P–N Junction? Learn how P-type and N-type materials join to create a diode.
Depletion Region & Biasing: See how forward and reverse bias shape the voltage–current behavior.
V–I Characteristics: Understand the curve that defines diode operation.
Real-World Uses: Discover common applications in rectifiers, signal clipping, and more.
Ideal for electronics students, hobbyists, and engineers seeking a clear, practical introduction to P–N junction semiconductors.
The Pala kings were people-protectors. In fact, Gopal was elected to the throne only to end Matsya Nyaya. Bhagalpur Abhiledh states that Dharmapala imposed only fair taxes on the people. Rampala abolished the unjust taxes imposed by Bhima. The Pala rulers were lovers of learning. Vikramshila University was established by Dharmapala. He opened 50 other learning centers. A famous Buddhist scholar named Haribhadra was to be present in his court. Devpala appointed another Buddhist scholar named Veerdeva as the vice president of Nalanda Vihar. Among other scholars of this period, Sandhyakar Nandi, Chakrapani Dutta and Vajradatta are especially famous. Sandhyakar Nandi wrote the famous poem of this period 'Ramcharit'.
A measles outbreak originating in West Texas has been linked to confirmed cases in New Mexico, with additional cases reported in Oklahoma and Kansas. The current case count is 817 from Texas, New Mexico, Oklahoma, and Kansas. 97 individuals have required hospitalization, and 3 deaths, 2 children in Texas and one adult in New Mexico. These fatalities mark the first measles-related deaths in the United States since 2015 and the first pediatric measles death since 2003.
The YSPH Virtual Medical Operations Center Briefs (VMOC) were created as a service-learning project by faculty and graduate students at the Yale School of Public Health in response to the 2010 Haiti Earthquake. Each year, the VMOC Briefs are produced by students enrolled in Environmental Health Science Course 581 - Public Health Emergencies: Disaster Planning and Response. These briefs compile diverse information sources – including status reports, maps, news articles, and web content– into a single, easily digestible document that can be widely shared and used interactively. Key features of this report include:
- Comprehensive Overview: Provides situation updates, maps, relevant news, and web resources.
- Accessibility: Designed for easy reading, wide distribution, and interactive use.
- Collaboration: The “unlocked" format enables other responders to share, copy, and adapt seamlessly. The students learn by doing, quickly discovering how and where to find critical information and presenting it in an easily understood manner.
CURRENT CASE COUNT: 817 (As of 05/3/2025)
• Texas: 688 (+20)(62% of these cases are in Gaines County).
• New Mexico: 67 (+1 )(92.4% of the cases are from Eddy County)
• Oklahoma: 16 (+1)
• Kansas: 46 (32% of the cases are from Gray County)
HOSPITALIZATIONS: 97 (+2)
• Texas: 89 (+2) - This is 13.02% of all TX cases.
• New Mexico: 7 - This is 10.6% of all NM cases.
• Kansas: 1 - This is 2.7% of all KS cases.
DEATHS: 3
• Texas: 2 – This is 0.31% of all cases
• New Mexico: 1 – This is 1.54% of all cases
US NATIONAL CASE COUNT: 967 (Confirmed and suspected):
INTERNATIONAL SPREAD (As of 4/2/2025)
• Mexico – 865 (+58)
‒Chihuahua, Mexico: 844 (+58) cases, 3 hospitalizations, 1 fatality
• Canada: 1531 (+270) (This reflects Ontario's Outbreak, which began 11/24)
‒Ontario, Canada – 1243 (+223) cases, 84 hospitalizations.
• Europe: 6,814
Exploring Substances:
Acidic, Basic, and
Neutral
Welcome to the fascinating world of acids and bases! Join siblings Ashwin and
Keerthi as they explore the colorful world of substances at their school's
National Science Day fair. Their adventure begins with a mysterious white paper
that reveals hidden messages when sprayed with a special liquid.
In this presentation, we'll discover how different substances can be classified as
acidic, basic, or neutral. We'll explore natural indicators like litmus, red rose
extract, and turmeric that help us identify these substances through color
changes. We'll also learn about neutralization reactions and their applications in
our daily lives.
by sandeep swamy
1. @2020 Presented By Y. N. D. Aravind 1
Presented By
Y. N. D. ARAVIND
M.Tech, Dept of CSE
Newton’s Group Of Institutions, Macherla
2. Session Objectives
Explain C Strings
Explain String Input / Output Functions
Explain Arrays of Strings
Explain String Concepts
@2020 Presented By Y. N. D. Aravind
2
Explain Strings Manipulation Functions
2
3. Arrays of Strings
To create an array of strings, you use a two dimensional character array, in
which the size of the left index determines the number of strings and the
size of the right index specify the maximum length of each string.
Syntax : char str[4][20];
In the above example an array of 4 strings, with each string having a
maximum length of 20 characters, those are str[0], str[1], str[2],str[3].
@2020 Presented By Y. N. D. Aravind
3
#include <stdio.h>
void main()
{
char names[10][20];
int n,i;
printf(“n How many names ”);
scanf(“%d”,&n);
flushall();
for(i=0;i<n;i++)
{
printf(“n Enter name %d ”,i);
gets(names[i]);
}
3
printf(“n The names are n”);
for(i=0;i<n;i++)
{
puts(names[i]);
}
}
Output
How many names 3
Enter name 1 NGI
Enter name 2 NIST
Enter name 3 NIE
The names are
NGI
NIST
NIE
4. String Functions
C does not provide any operator to deal with strings. However, C does
have a large set of useful string handling library functions. The
corresponding header file is string.h
@2020 Presented By Y. N. D. Aravind
1. strcpy( destination string, source string ): To copy source string to destination string.
2. strcat(string1, string2 ): To append string2 at end of string1(include null char )
3. strlen( string ): Returns length of the strings( no of characters )
4. strcmp( string1, string2 ): To compare two strings and returns 0(zero) if they are equal
otherwise returns a non-zero number.
5. strchr(string,char): Locate the first occurrence of a char in a string.
6. strrev( string ): Reverse of the string.
7. strncpy( string1,string2,n): To copy n chars from string2 to string1. After copy we must place a null
char at end of string1.
8. strncat( string1, string2, n): To append n chars of string2 at end of string1. After append we must
place a null char at end of string1.
9. strcmpi(string1,string2) : Same as strcmp( ), but at the time of compare it will ignore the case
sensitive.
10. strncmp( string1, string2, n): Same as strcmp( ), but it will compare first n specified chars only.
11. strncmpi( string1, string2, n): Same as strcmpi( ), but it will compare first n specified chars only.
12. strset( s1,s2): Returns the string s1 at the first occurrence of a sub string s2.
4
5. strcpy( )
This function is used to copy one string to the other. Its syntax is as follows:
strcpy(string1,string2);
where string1 and string2 are one-dimensional character arrays.
This function copies the content of string2 to string1.
@2020 Presented By Y. N. D. Aravind
#include<stdio.h>
#include<conio.h>
Void main ()
{
char string1[30],string2[30];
printf(“n Enter first string : ”);
gets(string1);
printf(“n Enter second string:”);
gets(string2);
strcpy(string1,string2);
printf(“n First string = %s”,string1);
printf(“n Second string =
%s”,string2);
}
5
OUTPUT
Enter first string : master
Enter second string : madam
First string = madam
Second string = madam
6. strcat ( )
This function is used to concatenate two strings. i.e., it appends one string at the end of the
specified string. Its syntax as follows :
strcat(string1,string2);
where string1 and string2 are one-dimensional character arrays.
This function joins two strings together. In other words, it adds the string2 to string1 and the
string1 contains the final concatenated string. E.g., string1 contains prog and string2 contains ram,
then string1 holds program after execution of the strcat() function.
@2020 Presented By Y. N. D. Aravind
#include<stdio.h>
#include<conio.h>
Void main()
{
char string1[30],string2[30];
printf(“n Enter first string : ”);
gets(string1);
printf(“n Enter second string:”);
gets(string2);
strcat(string1,string2);
printf(“n First string = %s”,string1);
printf(“n Second string = %s”,string2);
}
6
OUTPUT
Enter first string : prog
Enter second string : ram
First string = program
Second string = ram
7. strncat( )
In the previous slide we discussed strcat() function, which is used for concatenation of one string
to another string. In this guide, we will see a similar function strncat(), which is same as strcat()
except that strncat() appends only the specified number of characters to the destination string.
Syntax:- char *strncat(char *str1, const char *str2, size_t n);
str1 – Destination string.
str2 – Source string which is appended at the end of destination string str1.
n – number of characters of source string str2 that needs to be appended.
@2020 Presented By Y. N. D. Aravind 7
#include <stdio.h>
#include <string.h>
int main ()
{
char str1[50], str2[50];
//destination string strcpy(str1, "This is my initial string");
//source string strcpy(str2, ", add this");
//displaying destination string printf("String after concatenation: %sn", strncat(str1, str2, 5));
// this should be same as return value of strncat() printf("Destination String str1: %s", str1);
return 0;
} OUTPUT
String after concatenation: This is my initial string, add
Destination String str1: This is my initial string, add
8. strlen( )
This function is used to find the length of the string excluding the NULL character. In other words,
this function is used to count the number of characters in a string. Its syntax is as follows:
int strlen(string);
Example: char str1[ ] = “WELCOME”;
int n;
n = strlen(str1);
@2020 Presented By Y. N. D. Aravind
#include<stdio.h>
#include<conio.h>
Void main()
{
char string1[50];
int length;
printf(“n Enter any string : ”);
gets(string1);
length=strlen(string1);
printf(“n The length of string = %d”,length);
}
8
OUTPUT
Enter any string : WELCOME
The length of string = 7
9. strcmp ( )
This function compares two strings character by character (ASCII comparison) and returns one of
three values {-1,0,1}. The numeric difference is „0‟ if strings are equal .If it is negative string1 is
alphabetically above string2 .If it is positive string2 is alphabetically above string1.
Its syntax is as follows : int strcmp(string1,string2);
Example : char str1[ ] = “ROM”;
char str2[ ] =”RAM”;
strcmp(str1,str2); (or) strcmp(“ROM”,”RAM”);
@2020 Presented By Y. N. D. Aravind
#include<stdio.h>
#include<conio.h>
Void main()
{
char string1[30],string2[15];
int x;
printf(“n Enter first string:”);
gets(string1);
printf(“n Enter second string:”);
gets(string2);
x=strcmp(string1,string2);
if(x==0)
printf(“n Both strings are equal”);
else if(x>0)
printf(“n First string is bigger”);
else
printf(“n Second string is bigger”);
}
9
OUTPUT
Enter first string : ROM
Enter second string : RAM
First string is bigger
10. strncmp ( )
In the last tutorial we discussed strcmp() function which is used for comparing
two strings. In this guide, we will discuss strncmp() function which is same as
strcmp(), except that strncmp() comparison is limited to the number of
characters specified during the function call. For example strncmp(str1, str2, 4)
would compare only the first four characters of strings str1 and str2.
Syntax:-
int strncmp(const char *str1, const char *str2, size_t n)
str1 – First String
str2 – Second String
n – number of characters that needs to be compared.
Return value of strncmp()
This function compares only the first n (specified number of) characters of
strings and returns following value based on the comparison.
0, if both the strings str1 and str2 are equal
>0, if the ASCII value of first unmatched character of str1 is greater than str2
<0, if the ASCII value of first unmatched character of str1 is less than str2
@2020 Presented By Y. N. D. Aravind 10
11. strrev ( )
The function can be used to reverse a string.
Syntax:- strrev(str);
@2020 Presented By Y. N. D. Aravind
#include<stdio.h>
#include<conio.h>
Void main
{
char str1[10];
printf(“n enter string”);
gets(str);
strrev(str);
puts(“The reverse string of a given string is ”);
puts(str);
}
11
OUTPUT
Enter string : COLLEGE
The reverse string of a given string is EGELLOC
12. strchar( )
The function strchr() searches the occurrence of a specified character in the given string and
returns the pointer to it.
Syntax :-
char *strchr(const char *str, int ch)str – The string in which the character is searched.
ch – The character that is searched in the string str.
Return Value of strchr()
It returns the pointer to the first occurrence of the character in the given string, which means that if
we display the string value of the pointer then it should display the part of the input string starting
from the first occurrence of the specified character.
@2020 Presented By Y. N. D. Aravind
#include <stdio.h>
#include <string.h>
int main ()
{
const char str[] = "This is just a String";
const char ch = 'u';
char *p;
p = strchr(str, ch);
printf("String starting from %c is: %s", ch, p);
return 0;
}
12
Output
String starting from u is: ust a String
13. Write a program to print whether the string is palindrome or not.
@2020 Presented By Y. N. D. Aravind
#include <stdio.h>
#include <string.h>
int main ()
{
char str[10],str1[10];
int x;
printf(“n Enter string ”);
gets(str);
strcpy(str1,str)
strrev(str);
x=strcmp(str,str1);
if(x==0)
{
printf(“n %s is palindrome”,str);
}
else
{
printf(“n %s is not palindrome”,str);
}
}
13
Output -1
Enter string liril
liril is palindrome
Output -2
Enter string newton
newton is not palindrome
14. Thank You
@2020 Presented By Y. N. D. Aravind
Presented By
Y. N. D. ARAVIND
M.Tech, Dept of CSE
Newton’s Group Of Institutions, Macherla
14