FUNCTION
INTRODUCTION & WRITING FUNCTIONS, SCOPE OF VARIABLES FUNCTIONS (INCLUDING USING BUILT IN LIBRARIES), PARAMETER PASSING IN FUNCTIONS, CALL BY VALUE, PASSING ARRAYS TO FUNCTIONS: IDEA OF CALL BY REFERENCE
introduction, file, types of files, need for file handling, steps for processing a file, file input/out functions {declaraion of file, opening a file, reading data from a file, writing data in a file, closing the file}, programs #technology #computers
How To Write A Resume With No Experience (template)How2Become.com
The document contains a personal statement, skills and abilities, educational history, and references section for a job application. In the personal statement, the applicant describes themselves as a highly motivated, professional, and committed team worker. They emphasize their dedication to continuous learning and providing exceptional customer service. Their skills include being customer focused, self-motivated, an excellent team worker with strong communication skills. Their educational history lists the schools attended and qualifications achieved. References are also provided.
This document discusses file handling in C. It defines a file, outlines the basic steps to process a file which are to open, read/write, and close it. The basic file operations like fopen, fclose, fread, fwrite are introduced. It also covers file open modes, additional modes like r+, w+, a+, and functions to work with files like fprintf, fscanf, getc, putc. Examples are provided to demonstrate reading, writing, seeking within a file using functions like fread, fwrite, fseek, ftell.
This document provides an overview of variables and constants in C#. It discusses the definition and initialization of variables, including value types like integers, floats, characters and reference types. Constants refer to fixed values that cannot be altered, and include integer, floating point, character and string literals. Various examples are provided of defining and initializing different types of variables and constants in C#.
C-Programming C LIBRARIES AND USER DEFINED LIBRARIES.pptxSKUP1
C programming provides standard library functions defined in header files and user-defined functions. Standard library functions like printf() and scanf() are pre-built to perform common tasks and are declared in header files like stdio.h. To use these functions, the corresponding header file must be included. Users can also define their own functions to customize program behavior. User-defined functions are defined using declarations, definitions, and calls.
The document encourages running the Christian race with perseverance and focus on Jesus. It describes believers as runners in a race, with an assembly of the faithful watching as encouragement. Though the road is narrow and steep, those who are committed will receive the prize of salvation from Jesus, who has already won the race for us through his sacrifice. Believers are called to run in the power of the spirit, with compassion and courage, keeping their eyes on Jesus and following his example even at great cost, in order to ultimately be victorious.
Decision making statements in C programmingRabin BK
The document discusses various decision making statements in C programming language, including if, if-else, if-else if-else, nested if, switch, ternary operator (? :) and goto statements. It provides syntax and examples of each statement type. Key decision making statements covered are if, if-else, if-else if-else for multi-way decisions, switch as a multi-way decision statement, and the ternary operator for two-way decisions. References and queries sections are also included.
Computer networks allow computing devices to connect and share resources. A network consists of connected devices like computers, printers, and servers. It uses communication hardware and protocols to transmit data. Common network hardware includes hubs, switches, routers, and cables. Networks can be configured in various topologies like bus, star, ring, or mesh. Networks are also classified based on their scope - a local area network (LAN) connects devices within a building, while a wide area network (WAN) spans a larger geographic area. Key roles are clients, which initiate data requests, and servers, which provide resources and services to clients.
This talks about the classes of IPv4 addresses, The Internet Etiquette, Computer Networks, Basic Communication Model, and Line Configuration in Computer Networks.
This document provides an overview of various programming concepts including variables, data types, decision making statements, loops, and more. It defines variables as named storage areas that can be manipulated by programs. Common variable types like char, int, float, and double are described along with their characteristics. Syntax and examples are given for if/else statements, switch statements, ternary operators, break, continue, and the various loop structures like for, while, and do-while loops. The document concludes by advertising an online programming course offered by Baabtra and providing contact information.
Data types define the type of data that variables can store in a C program. There are three main types of data types: primitive, derived, and user-defined. Primitive types include integer, character, float, and double, which store numeric or character values of different ranges and sizes. Derived types are based on primitive types, while user-defined types like enums allow the user to define their own custom data types as a series of integer constants.
This document discusses the architecture and workings of the BitTorrent protocol. It begins with an introduction and overview of other file transfer methods. The key components of the BitTorrent system are then explained, including the torrent file, tracker, peers, and client software. The document outlines how BitTorrent uses a decentralized structure and tit-for-tat data exchange between peers to efficiently distribute file pieces across the network with no single point of failure.
Contents:-
Introduction
What is a File?
High Level I/O Functions
Defining & Opening a File
Closing a File
The getc and putc Functions
The getw and putw Functions
The fprintf and fscanf Functions
This document provides information about computer systems and their components. It discusses that a computer accepts data as input, processes it according to rules, produces output, and stores results. It also describes the functions of input, output, storage, and processing devices. The central processing unit (CPU) controls and coordinates the computer's operations by fetching instructions, decoding them, executing them, and storing results. Data is represented digitally using bits, bytes, and character encoding schemes like ASCII. Units of data measurement like kilobytes and clockspeed measures like megahertz and gigahertz are also explained.
The preprocessor is a program that modifies C code before compilation. It performs tasks like including other files, defining symbolic constants and macros, and conditional compilation. Preprocessor directives begin with # and include commands like #include, #define, #ifdef, and #error. The #include directive copies another file into the source code. The #define directive defines symbolic constants or macros. Conditional compilation directives like #if and #ifdef control which code blocks are compiled.
This document discusses error detection and correction in data transmission. It describes single-bit errors, where one bit is corrupted, and burst errors, where multiple contiguous bits are corrupted. Error detection allows a receiver to detect if errors occurred, while error correction identifies the exact corrupted bits. Redundant bits are added to messages to enable detection and correction. Methods include forward error correction, retransmission, block coding, and convolution coding. Block coding divides messages into blocks with redundant bits added, creating codewords that allow error detection if a codeword is invalid.
Sockets provide an interface between applications and the network. An application creates a socket which can be either connection-oriented or connectionless. The socket type determines the communication style. Once configured, the application can send and receive data through the socket to communicate over the network. There are two main socket types - SOCK_STREAM for reliable connections and SOCK_DGRAM for unreliable datagrams. Socket addresses contain the IP address and port number to identify the endpoint of communication.
Practical write a c program to reverse a given numberMainak Sasmal
This document contains code snippets for various C programming problems and their solutions. Some of the problems addressed include:
1. Writing programs to reverse a number, check if a number is palindrome, and find the smallest of three numbers.
2. Programs to calculate the sum of a series, find the average of numbers, and count vowels and consonants in a string.
3. Additional examples show how to determine prime numbers, calculate the sum of a squared series, find the largest number in an array, and calculate factorials.
4. Other solutions demonstrate checking if a number is odd or even, determining if a character is a vowel, checking for a leap year, and calculating the highest common
K.Prasanth Kumar is the head of the computer science department at IIMC Hyderabad and will be giving presentations on data communications and networking. Data communication involves the exchange of data between two devices using wired or wireless transmission and must ensure the delivery, accuracy, and timeliness of the transmitted data. The key components of data communication are the message being sent, the sender who creates and transmits the message, the receiver who receives the message, the transmission medium used to carry the message between sender and receiver, and the protocols that establish communication rules.
This document discusses functions in C++. It defines a function as a block of code that performs a specific task and can be reused. The key points made are:
- Functions allow for modular and reusable code. They group statements and give them a name to be called from other parts of a program.
- The document demonstrates simple functions in C++ through examples, including defining, declaring, calling, passing arguments to, and returning values from functions.
- Other function concepts covered include function overloading, recursion, inline functions, default arguments, scope and storage class, and global vs local variables.
The document provides an overview of the C programming language. It discusses that C was developed at Bell Labs in the 1970s and influenced by other languages like BCPL. The core concepts covered include C's character set, keywords, basic program structure with main function, header files, data types, variables, constants, and declarations. An example "Hello World" C program is also given.
This document provides an introduction to computer networks. It defines what a network is and discusses the purpose of sharing resources between connected computers. It describes different network topologies including bus, star, ring and mesh and explains common network hardware like switches, routers, hubs and network interface cards. The document also distinguishes between local, wide and metropolitan area networks.
This document compares different network topologies including bus, star, ring, token ring, tree, mesh, fully connected, and hybrid topologies. It discusses the logical and physical characteristics of each topology as well as their advantages, disadvantages, common cable types used, reliability, complexity, security, cost considerations, and factors to consider when choosing a topology such as money, cable length, number of users, expandability and future growth.
The document discusses different types of loop control statements in programming languages. It describes while loops, do-while loops, and for loops. While loops execute a block of code as long as a condition is true. Do-while loops execute a block of code once and then repeatedly as long as the condition is true. For loops allow initialization of a counter variable, a condition to test each iteration, and an increment/decrement step. The document also covers nesting loops, using break and continue statements to control loop execution, and provides examples of each type of loop.
The document presents information about functions in the C programming language. It discusses what a C function is, the different types of C functions including library functions and user-defined functions. It provides examples of how to declare, define, call and pass arguments to C functions. Key points covered include how functions allow dividing a large program into smaller subprograms, the ability to call functions multiple times, and how functions improve readability, debugging and reusability of code. An example program demonstrates a simple C function that calculates the square of a number.
This document discusses modular programming and functions in C programming. Modular programming involves separating a program's functionality into independent, interchangeable modules. There are advantages to this approach such as improved manageability, reusability, and collaboration between programmers.
The document then discusses functions in C programming. Functions allow programmers to divide a program into reusable modules. There are two types of functions - standard library functions defined in header files, and user-defined functions. User-defined functions have advantages like making programs easier to understand, maintain, and debug. The key parts of a user-defined function are the declaration, definition, and call. Functions can take arguments, return values, and be used recursively. Arrays and 2D arrays
Computer networks allow computing devices to connect and share resources. A network consists of connected devices like computers, printers, and servers. It uses communication hardware and protocols to transmit data. Common network hardware includes hubs, switches, routers, and cables. Networks can be configured in various topologies like bus, star, ring, or mesh. Networks are also classified based on their scope - a local area network (LAN) connects devices within a building, while a wide area network (WAN) spans a larger geographic area. Key roles are clients, which initiate data requests, and servers, which provide resources and services to clients.
This talks about the classes of IPv4 addresses, The Internet Etiquette, Computer Networks, Basic Communication Model, and Line Configuration in Computer Networks.
This document provides an overview of various programming concepts including variables, data types, decision making statements, loops, and more. It defines variables as named storage areas that can be manipulated by programs. Common variable types like char, int, float, and double are described along with their characteristics. Syntax and examples are given for if/else statements, switch statements, ternary operators, break, continue, and the various loop structures like for, while, and do-while loops. The document concludes by advertising an online programming course offered by Baabtra and providing contact information.
Data types define the type of data that variables can store in a C program. There are three main types of data types: primitive, derived, and user-defined. Primitive types include integer, character, float, and double, which store numeric or character values of different ranges and sizes. Derived types are based on primitive types, while user-defined types like enums allow the user to define their own custom data types as a series of integer constants.
This document discusses the architecture and workings of the BitTorrent protocol. It begins with an introduction and overview of other file transfer methods. The key components of the BitTorrent system are then explained, including the torrent file, tracker, peers, and client software. The document outlines how BitTorrent uses a decentralized structure and tit-for-tat data exchange between peers to efficiently distribute file pieces across the network with no single point of failure.
Contents:-
Introduction
What is a File?
High Level I/O Functions
Defining & Opening a File
Closing a File
The getc and putc Functions
The getw and putw Functions
The fprintf and fscanf Functions
This document provides information about computer systems and their components. It discusses that a computer accepts data as input, processes it according to rules, produces output, and stores results. It also describes the functions of input, output, storage, and processing devices. The central processing unit (CPU) controls and coordinates the computer's operations by fetching instructions, decoding them, executing them, and storing results. Data is represented digitally using bits, bytes, and character encoding schemes like ASCII. Units of data measurement like kilobytes and clockspeed measures like megahertz and gigahertz are also explained.
The preprocessor is a program that modifies C code before compilation. It performs tasks like including other files, defining symbolic constants and macros, and conditional compilation. Preprocessor directives begin with # and include commands like #include, #define, #ifdef, and #error. The #include directive copies another file into the source code. The #define directive defines symbolic constants or macros. Conditional compilation directives like #if and #ifdef control which code blocks are compiled.
This document discusses error detection and correction in data transmission. It describes single-bit errors, where one bit is corrupted, and burst errors, where multiple contiguous bits are corrupted. Error detection allows a receiver to detect if errors occurred, while error correction identifies the exact corrupted bits. Redundant bits are added to messages to enable detection and correction. Methods include forward error correction, retransmission, block coding, and convolution coding. Block coding divides messages into blocks with redundant bits added, creating codewords that allow error detection if a codeword is invalid.
Sockets provide an interface between applications and the network. An application creates a socket which can be either connection-oriented or connectionless. The socket type determines the communication style. Once configured, the application can send and receive data through the socket to communicate over the network. There are two main socket types - SOCK_STREAM for reliable connections and SOCK_DGRAM for unreliable datagrams. Socket addresses contain the IP address and port number to identify the endpoint of communication.
Practical write a c program to reverse a given numberMainak Sasmal
This document contains code snippets for various C programming problems and their solutions. Some of the problems addressed include:
1. Writing programs to reverse a number, check if a number is palindrome, and find the smallest of three numbers.
2. Programs to calculate the sum of a series, find the average of numbers, and count vowels and consonants in a string.
3. Additional examples show how to determine prime numbers, calculate the sum of a squared series, find the largest number in an array, and calculate factorials.
4. Other solutions demonstrate checking if a number is odd or even, determining if a character is a vowel, checking for a leap year, and calculating the highest common
K.Prasanth Kumar is the head of the computer science department at IIMC Hyderabad and will be giving presentations on data communications and networking. Data communication involves the exchange of data between two devices using wired or wireless transmission and must ensure the delivery, accuracy, and timeliness of the transmitted data. The key components of data communication are the message being sent, the sender who creates and transmits the message, the receiver who receives the message, the transmission medium used to carry the message between sender and receiver, and the protocols that establish communication rules.
This document discusses functions in C++. It defines a function as a block of code that performs a specific task and can be reused. The key points made are:
- Functions allow for modular and reusable code. They group statements and give them a name to be called from other parts of a program.
- The document demonstrates simple functions in C++ through examples, including defining, declaring, calling, passing arguments to, and returning values from functions.
- Other function concepts covered include function overloading, recursion, inline functions, default arguments, scope and storage class, and global vs local variables.
The document provides an overview of the C programming language. It discusses that C was developed at Bell Labs in the 1970s and influenced by other languages like BCPL. The core concepts covered include C's character set, keywords, basic program structure with main function, header files, data types, variables, constants, and declarations. An example "Hello World" C program is also given.
This document provides an introduction to computer networks. It defines what a network is and discusses the purpose of sharing resources between connected computers. It describes different network topologies including bus, star, ring and mesh and explains common network hardware like switches, routers, hubs and network interface cards. The document also distinguishes between local, wide and metropolitan area networks.
This document compares different network topologies including bus, star, ring, token ring, tree, mesh, fully connected, and hybrid topologies. It discusses the logical and physical characteristics of each topology as well as their advantages, disadvantages, common cable types used, reliability, complexity, security, cost considerations, and factors to consider when choosing a topology such as money, cable length, number of users, expandability and future growth.
The document discusses different types of loop control statements in programming languages. It describes while loops, do-while loops, and for loops. While loops execute a block of code as long as a condition is true. Do-while loops execute a block of code once and then repeatedly as long as the condition is true. For loops allow initialization of a counter variable, a condition to test each iteration, and an increment/decrement step. The document also covers nesting loops, using break and continue statements to control loop execution, and provides examples of each type of loop.
The document presents information about functions in the C programming language. It discusses what a C function is, the different types of C functions including library functions and user-defined functions. It provides examples of how to declare, define, call and pass arguments to C functions. Key points covered include how functions allow dividing a large program into smaller subprograms, the ability to call functions multiple times, and how functions improve readability, debugging and reusability of code. An example program demonstrates a simple C function that calculates the square of a number.
This document discusses modular programming and functions in C programming. Modular programming involves separating a program's functionality into independent, interchangeable modules. There are advantages to this approach such as improved manageability, reusability, and collaboration between programmers.
The document then discusses functions in C programming. Functions allow programmers to divide a program into reusable modules. There are two types of functions - standard library functions defined in header files, and user-defined functions. User-defined functions have advantages like making programs easier to understand, maintain, and debug. The key parts of a user-defined function are the declaration, definition, and call. Functions can take arguments, return values, and be used recursively. Arrays and 2D arrays
The document discusses functions in C programming. It defines functions as self-contained blocks of code that perform a specific task. Functions make a program modular and easier to debug. There are four main types of functions: functions with no arguments and no return value, functions with no arguments but a return value, functions with arguments but no return value, and functions with both arguments and a return value. Functions are called by their name and can pass data between the calling and called functions using arguments.
The document discusses functions in C programming. It defines what a function is and explains that functions can be used to break a large program into smaller modular pieces of code that can be reused. The key points covered include: defining functions with return types, parameters, and bodies; declaring functions; calling functions by passing arguments; and passing arguments by value vs reference. Examples are provided to demonstrate creating, calling, and passing arguments to functions. Recursion is also discussed as a special case where a function calls itself.
A large program can be divided into smaller subprograms or functions. Functions make a program easier to write, read, update and debug by dividing it into self-contained tasks. Functions allow code to be reused and are called by the main program. Functions may accept arguments from the main program and return values to the main program. This allows two-way communication between functions and the main program.
1. A function is a block of code that performs a specific task. Functions allow programmers to split a large program into smaller sub-tasks and call them multiple times.
2. There are two main types of functions - library functions provided by the standard library, and user-defined functions created by the programmer.
3. Functions make programs easier to write, read, update and debug by splitting them into smaller, well-defined tasks.
The document discusses functions in C programming. It defines what a function is and explains the advantages of using functions, such as avoiding duplicate code and improving reusability. It describes the different parts of a function - declaration, definition, and call. It explains user-defined and standard library functions. It also covers parameter passing techniques (call by value and call by reference), recursion, and dynamic memory allocation using functions like malloc(), calloc(), realloc(), and free().
The document discusses functions in C programming. It defines what a function is, how functions are declared and defined, how to pass arguments to functions, and different ways to call functions. It provides examples of using functions to calculate factorials, Fibonacci series, find the highest common factor and lowest common multiple of two numbers, and sum the digits of a number recursively. Various ways of implementing functions using loops, recursion, and by passing arguments are demonstrated through code examples.
The document discusses functions in C programming. It defines a function as a block of code that performs a specific task. There are two types of functions: predefined standard library functions and user-defined functions. The key aspects of a function are its declaration, definition, and call. Functions can be used to break a large program into smaller, reusable components. Parameters can be passed to functions by value or by reference. Recursion is when a function calls itself, and is used in algorithms like calculating factorials. Dynamic memory allocation allows programs to request memory at runtime using functions like malloc(), calloc(), realloc(), and free().
function in in thi pdf you will learn what is fu...kushwahashivam413
Functions in C can be divided into library functions and user-defined functions. Library functions are predefined in header files while user-defined functions are created by the programmer. There are three aspects of a function - declaration, definition, and call. The function declaration specifies the return type and parameters. The function definition contains the actual body of statements. The function call executes the function. Functions can be passed arguments and return values. Arguments can be passed by value or by reference, affecting whether changes inside the function affect the original variables.
The document discusses functions in C programming. It defines functions and explains their various parts like declaration, definition, and invocation. It also differentiates between function declaration and definition. Various types of functions are classified based on their inputs and outputs. The key differences between call by value and call by reference are explained with examples. Advantages of pass by reference are also mentioned.
The document discusses C programming functions. It provides examples of defining, calling, and using functions to calculate factorials, Fibonacci sequences, HCF and LCM recursively and iteratively. Functions allow breaking programs into smaller, reusable blocks of code. They take in parameters, can return values, and have local scope. Function prototypes declare their interface so they can be called from other code locations.
A function is a block of code that performs a specific task. It takes input, processes it, and returns output. There are two types of functions: library functions provided by the C language, and user-defined functions created by the programmer. Functions allow programmers to divide a large program into smaller, separate, and reusable parts of code. Functions make code more organized and modular.
n the world of Artificial Intelligence, two giants have emerged: DeepSeek and ChatGPT. Both offer groundbreaking capabilities and features, but which one is the best fit for your needs? Whether you're an entrepreneur, a developer, a student, or simply an enthusiast, "DeepSeek vs. ChatGPT: The Battle of AI Titans" will guide you through the intricate world of these AI systems, helping you choose the right one for you and your specific use case.
Highlights of the Book:
Comprehensive AI Comparison: Learn about the strengths and weaknesses of both DeepSeek and ChatGPT. Understand how each one operates, their unique features, and how they can benefit you in different scenarios.
Advanced Techniques: Gain insight into advanced techniques for using DeepSeek and ChatGPT. Learn how to fine-tune prompts, troubleshoot common issues, and integrate these AIs with other tools to maximize their potential.
Real-World Use Cases: Learn how each AI system performs in specific industries and use cases, from customer service and marketing to software development and education. Understand which one excels in each domain and how you can leverage them for your goals.
Practical Tips and Tricks: Get actionable strategies for optimizing performance, solving technical challenges, and using both AIs in a way that aligns with your goals. These tips will help you become a power user and get the most out of these AI systems.
Choosing the Right AI for You: This book doesn't just provide information-it helps you make the best choice for your unique needs. Whether you're focused on accuracy, creativity, or scalability, you'll find clear guidance on which AI system will serve you best.
Why This Book Is for You:
If you're looking to stay ahead in the fast-paced world of AI, this book will serve as your ultimate guide. Whether you're choosing between DeepSeek and ChatGPT for a personal project or an enterprise solution, this book helps you weigh the pros and cons of each system. Armed with in-depth insights and real-world applications, you will be able to make an informed decision that aligns with your needs.
With clear, actionable advice, "DeepSeek vs. ChatGPT: The Battle of AI Titans" helps you cut through the complexity of these systems and unlock their full potential. From integrating AI into your workflow to solving the most common issues, this book provides you with everything you need to succeed in your AI journey.
Get your copy today and join the battle of AI titans!
The Purpose of Cutting and Copying
Copying: Creates a duplicate of the selected data without removing it from its original location. This is useful when the same data is needed in multiple locations.
Cutting: Moves the selected data from its original location to a new one. The original data is removed after pasting.
Example: If you have a list of names in Column A and need to duplicate them in Column B, you can use Ctrl+C (Copy) to duplicate them. To move the data instead, use Ctrl+X (Cut).
Unlock Seamless Cloud Storage with "Beginners' Guide to Microsoft OneDrive"!
Master the essentials of OneDrive with this easy-to-follow guide designed for beginners and everyday users. From setting up your account to syncing and securing files across all your devices, this book covers everything you need to streamline your digital life.
Inside this all-in-one guide, you’ll discover:
🚀 Getting Started with OneDrive – Step-by-step instructions to set up your OneDrive account and navigate the intuitive interface, so you can start organizing and storing files in minutes.
📂 Efficient File Management – Learn how to upload, tag, and organize files for effortless storage, using OneDrive’s powerful search functions and management tools.
💻 Syncing Across Devices – Master the art of syncing files on Windows, macOS, and mobile devices, ensuring your important documents are always up-to-date and accessible, wherever you are.
Sharing and Collaboration – Discover how to share files, co-author documents, and collaborate in real-time with Microsoft’s seamless integration of OneDrive, Teams, and Office Online.
🔐 Security at Its Best – Understand OneDrive’s security features, like two-factor authentication and version control, to safeguard your files and recover older versions whenever needed.
💼 OneDrive for Work and School – Explore how OneDrive can enhance productivity in both professional and educational settings, with practical examples and tips for organizing, sharing, and collaborating on work or academic projects.
🔧 Troubleshooting Common Issues – Solve syncing problems, upload errors, and access issues with simple, practical solutions that keep you running smoothly.
Start mastering Microsoft OneDrive today and transform how you manage your files and collaborate online!
Buy now and simplify your file management today!
Are you interested in using AI strategies to 10x your productivity and money via human and real-world applications?
Are you interested in getting updated on the use of artificial intelligence and ChatGPT for your personal and professional growth?
Perhaps you used ChatGPT once or twice and the results you got were disappointing. You've found yourself staring at your screen in frustration, wondering how some people are effortlessly skyrocketing their productivity and financial success with ChatGPT, while you on the other hand, are still struggling to experience at least a quarter of the potential AI claims to have.
YOU DON'T HAVE TO KEEP STRUGGLING. Being a pro at using ChatGPT is way EASIER than you think it is–- As long as you have the right guide to help you!
This book was human-written, with ChatGPT used for research purposes. You too can get the knowledge, skills, and planning that is needed for exploring the use of artificial intelligence, to any level, right at your fingertips.
‘ChatGPT Prompts and Generative AI for Beginners’ gives you everything you need to get started or to enhance your current journey. With this indispensable resource, you will learn the necessary skills to thrive AND how to make money at the same time.
Inside ‘ChatGPT Prompts and Generative AI for Beginners’, you're going to learn about:
• The foundations of AI and ChatGPT
• How to enhance personal productivity with AI
• The best ways to apply effective ChatGPT prompts
• Strategies for driving business growth and competitiveness with AI
• How to use AI tools for consultants
• Tailored solutions for sustainable business growth, to outsmart your competitors, outperform and outgrow your current limitations.
• AI-powered tools for overcoming productivity obstacles
• Leveraging AI for long-term financial success
• AI-driven wealth management
• Ethical dilemmas surrounding AI and how to stay safe
• And a whole lot more!
All rights reserved. No part of this book may be reproduced, stored in a
retrieval system, or transmitted in any form or by any means, electronic,
mechanical, photocopying, recording, or otherwise, without prior written
permission by the author
Are you passionate about filmmaking but feel limited by the constraints of expensive equipment and complex setups? Smart Phone Film Making is here to show you how to transform your smartphone into a powerful, portable film studio. Whether you're an aspiring filmmaker, content creator, or an experienced director eager to explore the possibilities of mobile technology, this book is packed with the tools, techniques, and inspiration you need to bring your stories to life.
Filmmaking has come a long way, and now smartphones can produce high-quality films that rival traditional cameras. With the right approach, your mobile device can become an incredible tool for storytelling, opening up opportunities for creativity, flexibility, and innovation. Smart Phone Film Making guides you step-by-step, from conceptualizing your idea to editing your final cut—all with just your phone.
Discover how to generate and refine ideas that resonate with audiences. Learn how to build compelling narratives and structure your stories effectively, whether you're working on a short film, a documentary, or a full-length feature. This book will help you translate your vision into an engaging screenplay.
Dive into smartphone cinematography by exploring the fundamentals of composition and shot techniques that enhance the look and feel of your film. Learn about framing, depth, the rule of thirds, and how to capture dynamic shots with your phone. From lighting techniques to camera movement, you'll gain insights to create visually stunning scenes.
Explore the best apps and tools for mobile filmmaking, from camera control apps with professional-level settings to editing software that handles complex projects. You'll find everything you need for a seamless workflow, plus discover affordable accessories like gimbals, lenses, and microphones that can elevate your film quality.
Editing is a crucial part of filmmaking, and your smartphone is fully capable of producing polished results. Learn about top mobile editing apps and techniques for cutting scenes, color grading, adding soundtracks, and enhancing visuals. With practical advice, you'll turn raw footage into a cohesive story.
Filming with a smartphone does come with unique challenges, from battery life and storage issues to achieving stable shots. This book shares proven strategies for managing these obstacles, ensuring your production stays smooth and uninterrupted. You'll learn how to make the most of your smartphone's capabilities while finding creative ways to navigate its limitations.
Once your film is complete, knowing how to promote it and reach an audience is key. Learn how to create buzz, submit your work to film festivals, and leverage social media and online platforms for maximum exposure. This book covers best practices for marketing and distribution to help your film gain the recognition it deserves.
BASIC COMPUTER CONCEPTS MADE BY: SIR NASEEM AHMED KHAN DOW VOCATIONAL & TECHNICAL TRAINING CENTRE
What is a computer? An electronic device, operating under the control of instructions stored in its own memory unit, that can accept data (input), manipulate the data according to specified rules (process), produce information (output) from the processing, and store the results for future use.
Advantages of Computers • Speed • Storage • High Accuracy • Versatility • Diligence • Automatic Operation • Obedience • Decision Making Capability
Ages of Computer • At the early age people used pebbles, stones, sticks, scratches, symbols and finger tips to count, which were later replaced by numbers. • The history of computing is divided into three ages during which man invented and improved different types of calculating machines. These ages are, • Dark age - 300 BC to 1890 • Middle age - 1890 AD to 1944 • Modern age - since 1944 AD
Classification of Computers According to Purpose General Purpose Computers: General purpose computers are designed to solve a large variety of problems. The different programs can be used to solve many problems. Most digital computers are general purpose computers and used in business and commercial data processing.
Classification of Computers According to Purpose . 2 Special Purpose Computers • The special purpose computers are designed to solve specific problems. The computer program for solving a specific problem is built right into the computer. Most analog computers are special purpose computers. These special purpose computers are widely used in industrial robotics.
Types of Computers . 1 Analog Computers A computer that uses moving parts to show changing information. The word “Analog” means continuously varying in quantity. The voltage, current, sound, speed, temperature, pressure etc. values are examples of analog data. The thermometer is an example of analog device because it measures continuously the length of a mercury column. Another example of analog computer is the analog clock because it measures the time by means of the distance continuously covered by the needle around a dial.
Types of Computers . 2 Digital Computers The word “Digital” means separate. It refers to binary system, which consists of only two digits, i.e. 0 and 1. Digital data consists of binary data represented by OFF (low) and ON (high) electrical pulses. These pulses are increased and decreased in discontinuous form rather than in continuous form. In digital computers, quantities are counted rather than measured. A digital computer operates by counting numbers or digits and gives output in digital form.
Types of Computers 3. Hybrid Computers The hybrid computers have best features of both analog and digital computers. These computers contain both the digital and analog components. In hybrid computers, the users can process both the continuous (analog) and discrete (digital) data.
Classification of Computers According to Size • Super Comput
Index
MS Word .....................................................................................................................................................1
What is Microsoft Word......................................................................................................................3
Brief History...........................................................................................................................................3
Quick Access Toolbar................................................................................................................................3
Title Bar........................................................................................................................................................4
Ribbon and Tabs ........................................................................................................................................4
Home tab:...........................................................................................................................................5
Insert tab: ...........................................................................................................................................5
Page Layout tab: ..............................................................................................................................6
References tab:.................................................................................................................................6
Mailings tab:......................................................................................................................................6
Review tab: ........................................................................................................................................7
View tab:.............................................................................................................................................7
Ruler.............................................................................................................................................................7
How to Select Text in MS Word...............................................................................................................8
How to Copy and Paste Text in MS Word..............................................................................................9
How to Save the Document in MS Word..............................................................................................10
How to Correct Errors in Ms Word.........................................................................................................12
How to Change Font Size in MS Word.................................................................................................14
How to Change Font Style in MS Word................................................................................................15
How to Format Font Color in MS Word.............
Eligibility Criteria
Programmer: Candidates should have a B.Tech (CS), BE (CS), MCA, B.Sc. Engg. (CS) and M.Sc. IT or equivalent from a recognized University/Board/Institute.
Important Date
Start Date for Submit of Online Apply: 11 November 2024.
Last Date for Submit of Apply Online: 10 December 2024.
Application Fee
All Other Candidates Rs.1000/-.
SC/ ST/ All Female of Bihar State/PH (Disabled) Candidates Rs.250/-.
Age Limit as of 01/08/2024
Minimum Age: 21 Years.
Maximum Age: 59 Years.
Selection Process
CBT-based MCQ (Multiple Choice Question) exam.
Proficiency Test.
How to Apply
Mode of Apply: Through Online.
Job Location: Bihar.
The document provides an overview of corporate social responsibility (CSR) through a presentation by R.K. Sahoo on August 14, 2012. It defines CSR as a company's commitment to operate in an economically, socially, and environmentally sustainable manner. The presentation discusses the importance of CSR and outlines how companies can integrate the principles of CSR, such as by respecting human rights, protecting the environment, and contributing to local communities
In this slides I explain how I have used storytelling techniques to elevate websites and brands and create memorable user experiences. You can discover practical tips as I showcase the elements of good storytelling and its applied to some examples of diverse brands/projecT
Algorithms are the central part of computing and Design and Analysis of algorithms course is the core
of the study of Computer Science discipline. The revised course on design and analysis of algorithm
introduces many new topics: Deterministic and Stochastic Algorithms , how to solve recurrence
relation problems through Substitution method, Recurrence tree and Master methods, An overview of
local and global optima ,Fractional Knapsack problem ,Huffman Codes ,a task scheduling algorithm ,
Topological Sort ,Strongly Connected Components , Maximum Bipartite Matching Problem, Binomial
coefficient computation , Floyd Warshall algorithm , String Matching Techniques :The naïve String
Matching Algorithm, The Rabin Karp Algorithm, Knuth –Morris Pratt Algorithm, Handling
Intractability: Approximation algorithms for Vertex Cover problem and Minimizing makespan as
parallel machines(Graham’s algorithm) , Parameterized algorithm for Vertex Cover problem and
Meta-heuristic Algorithms
Course Structure*
Block- 1 Introduction to Algorithms
Unit 1: Basics of an Algorithm and its
properties
- Introduction
- Objective
- Example of an Algorithm
- Basics building blocks of Algorithms
- A survey of common running time
- Analysis & Complexity of Algorithm
- Types of problems
- Problem Solving Techniques
- Deterministic and Stochastic
Algorithms
- Summary
- Solutions/Answers
- Further Readings
Unit 2: Some pre-requisites and
Asymptotic Bounds
Introduction
Objectives
Some Useful Mathematical
Functions &Notations
Functions & Notations
Modular Arithmetic/Mod
Function
Mathematical Expectation
Principle of Mathematical
Induction
Concept of Efficiency of an Algorithm
Well Known Asymptotic Functions &
Notations
Summary
Solutions/Answers
Unit 3: Analysis of Simple Algorithm
Introduction
Objectives
complexity Analysis of Algorithms
Euclid Algorithm for GCD
Polynomial Evaluation Algorithm
Exponent Evaluation
Sorting Algorithm
3.3 Analysis of Non-Recursive Control
Structures
Sequencing
for Construct
While and Repeat Constructs
Recursive Constructs
Summary
Solutions/Answers
Further Readings
22
Unit 4: Solving Recurrences
- Introduction
- Objective
- Substitution Methods
- Iteration Methods
- Recursive Tree Methods
- Master Methods
- Summary
- Solution/Answers
- Further Readings
Block- 2 Design Techniques-I
Unit 1: Greedy Technique
Some Examples to understand Greedy
Techniques
Formalization of Greedy Techniques
An overview of local and global
optima
Fractional Knapsack problem
Huffman Codes
A task scheduling algorithm
Unit 2: Divide & Conquer Technique
General Issues in Divide and Conquer
Technique
Binary Search Algorithm
Sorting Algorithm
o Merge Sort
o Quick Sort
Matrix Multiplication Algorithm
Unit 3: Graph Algorithm -I Basic Definition and terminologies Graph Representation
o Adjacency Matrix
o Adjacency List Graph Traversal Algorithms
o Depth First Search
o Breadth First Search Topological Sort Strongly Connected Components
Bl
To help you with BEE (Basic Electrical Engineering) questions, here are some commonly covered topics and types of questions that you might find useful:
### 1. **Basic Concepts and Laws**
- **Ohm's Law**: Define Ohm's law and its applications.
- **Kirchhoff's Laws**: Explain Kirchhoff’s Current Law (KCL) and Kirchhoff’s Voltage Law (KVL) with examples.
- **Coulomb's Law**: State Coulomb’s law and how it applies to electric fields.
- **Voltage, Current, Resistance**: Define these terms and provide units of measurement.
### 2. **Electrical Circuits and Network Theorems**
- **Series and Parallel Circuits**: Explain the difference between series and parallel circuits and how to calculate equivalent resistance.
- **Thevenin’s Theorem**: What is Thevenin’s Theorem, and how is it applied?
- **Norton’s Theorem**: Describe Norton’s theorem and provide a simple example.
- **Superposition Theorem**: Explain the superposition theorem and its application in analyzing circuits.
### 3. **AC Circuits**
- **AC vs. DC**: Describe the differences between alternating current (AC) and direct current (DC).
- **Impedance and Reactance**: Define impedance, reactance, and how they relate to AC circuits.
- **Power in AC Circuits**: What are real power, reactive power, and apparent power?
- **Resonance in AC Circuits**: Explain resonance and its importance in AC circuits.
### 4. **Transformers and Electromagnetic Induction**
- **Faraday’s Law of Electromagnetic Induction**: State Faraday's law and its applications.
- **Types of Transformers**: Explain the different types of transformers and their applications.
- **Transformer Efficiency**: How is transformer efficiency calculated?
### 5. **Electrical Machines**
- **DC Machines**: Describe the working principle of DC motors and generators.
- **AC Machines**: Explain the construction and working of induction motors and synchronous machines.
- **Single-Phase vs. Three-Phase**: What is the difference between single-phase and three-phase machines?
### 6. **Measurement and Instrumentation**
- **Types of Meters**: Describe the working of ammeters, voltmeters, and wattmeters.
- **Bridge Circuits**: Explain Wheatstone bridge and its applications in measurements.
- **Power Factor**: What is power factor, and why is it important?
### Sample Questions:
1. Calculate the total resistance of a series circuit with resistors of 5Ω, 10Ω, and 15Ω.
2. Using Thevenin’s theorem, find the equivalent circuit for a network with a given load.
3. If a 230V AC source is applied to a 10Ω resistor, what is the power dissipated?
4. Explain how a transformer steps up or steps down voltage, and why it doesn’t work with DC.
Let me know if you'd like more questions on a specific topic or if you're interested in detailed solutions!
its all about Artificial Intelligence(Ai) and Machine Learning and not on advanced level you can study before the exam or can check for some information on Ai for project
The Fluke 925 is a vane anemometer, a handheld device designed to measure wind speed, air flow (volume), and temperature. It features a separate sensor and display unit, allowing greater flexibility and ease of use in tight or hard-to-reach spaces. The Fluke 925 is particularly suitable for HVAC (heating, ventilation, and air conditioning) maintenance in both residential and commercial buildings, offering a durable and cost-effective solution for routine airflow diagnostics.
How to use nRF24L01 module with ArduinoCircuitDigest
Learn how to wirelessly transmit sensor data using nRF24L01 and Arduino Uno. A simple project demonstrating real-time communication with DHT11 and OLED display.
Sorting Order and Stability in Sorting.
Concept of Internal and External Sorting.
Bubble Sort,
Insertion Sort,
Selection Sort,
Quick Sort and
Merge Sort,
Radix Sort, and
Shell Sort,
External Sorting, Time complexity analysis of Sorting Algorithms.
The role of the lexical analyzer
Specification of tokens
Finite state machines
From a regular expressions to an NFA
Convert NFA to DFA
Transforming grammars and regular expressions
Transforming automata to grammars
Language for specifying lexical analyzers
Data Structures_Linear data structures Linked Lists.pptxRushaliDeshmukh2
Concept of Linear Data Structures, Array as an ADT, Merging of two arrays, Storage
Representation, Linear list – singly linked list implementation, insertion, deletion and searching operations on linear list, circularly linked lists- Operations for Circularly linked lists, doubly linked
list implementation, insertion, deletion and searching operations, applications of linked lists.
Fluid mechanics is the branch of physics concerned with the mechanics of fluids (liquids, gases, and plasmas) and the forces on them. Originally applied to water (hydromechanics), it found applications in a wide range of disciplines, including mechanical, aerospace, civil, chemical, and biomedical engineering, as well as geophysics, oceanography, meteorology, astrophysics, and biology.
It can be divided into fluid statics, the study of various fluids at rest, and fluid dynamics.
Fluid statics, also known as hydrostatics, is the study of fluids at rest, specifically when there's no relative motion between fluid particles. It focuses on the conditions under which fluids are in stable equilibrium and doesn't involve fluid motion.
Fluid kinematics is the branch of fluid mechanics that focuses on describing and analyzing the motion of fluids, such as liquids and gases, without considering the forces that cause the motion. It deals with the geometrical and temporal aspects of fluid flow, including velocity and acceleration. Fluid dynamics, on the other hand, considers the forces acting on the fluid.
Fluid dynamics is the study of the effect of forces on fluid motion. It is a branch of continuum mechanics, a subject which models matter without using the information that it is made out of atoms; that is, it models matter from a macroscopic viewpoint rather than from microscopic.
Fluid mechanics, especially fluid dynamics, is an active field of research, typically mathematically complex. Many problems are partly or wholly unsolved and are best addressed by numerical methods, typically using computers. A modern discipline, called computational fluid dynamics (CFD), is devoted to this approach. Particle image velocimetry, an experimental method for visualizing and analyzing fluid flow, also takes advantage of the highly visual nature of fluid flow.
Fundamentally, every fluid mechanical system is assumed to obey the basic laws :
Conservation of mass
Conservation of energy
Conservation of momentum
The continuum assumption
For example, the assumption that mass is conserved means that for any fixed control volume (for example, a spherical volume)—enclosed by a control surface—the rate of change of the mass contained in that volume is equal to the rate at which mass is passing through the surface from outside to inside, minus the rate at which mass is passing from inside to outside. This can be expressed as an equation in integral form over the control volume.
The continuum assumption is an idealization of continuum mechanics under which fluids can be treated as continuous, even though, on a microscopic scale, they are composed of molecules. Under the continuum assumption, macroscopic (observed/measurable) properties such as density, pressure, temperature, and bulk velocity are taken to be well-defined at "infinitesimal" volume elements—small in comparison to the characteristic length scale of the system, but large in comparison to molecular length scale
This paper proposes a shoulder inverse kinematics (IK) technique. Shoulder complex is comprised of the sternum, clavicle, ribs, scapula, humerus, and four joints.
Machine learning project on employee attrition detection using (2).pptxrajeswari89780
PPS 6.6.FUNCTION INTRODUCTION & WRITING FUNCTIONS, SCOPE OF VARIABLES FUNCTIONS
1. PPS
Unit – 6
Function
6.1 Introduction & Writing Functions
Similar to other languages C language also provides the facility of function. Function is
the block of code which is used to perform a specific task. In c language the complete
program is composed of function.
Functions are useful to divide c programs into smaller modules. Programmer can
invoked these modules anywhere inside c program for any number of times.
Functions are used to increase readability of the code. Size of program can be reduce
by using functions. By using function, programmer can divide complex tasks into
smaller manageable tasks and test them independently before using them together.
Functions of C language are defined with the type of function. The type of functions
indicates the data type of value which will return by function. In order to use function in
the program, initially programmer have to inform compiler about the function. This is
also called as defining a function.
In C programme all the function definition present outside the main function. All function
need to be declared and defined before use. Function declaration requires function
name, argument list, and return type.
Return Type Function name (Argument list)
{
Statement 1;
Statement 2;
…………...
Statement n;
2. }
6.2 Scope Of Variables Functions (Including Using Built In Libraries)
1. Library Functions
A function which is predefined in c language is called library function. Library function
is also called as built in function of C language. The definition of library function is
stored in respective header file. Library functions are used to perform dedicated
operation like taking input from user, displaying output, string handling operation, etc.
Library functions are readily available and programmer can directly use it without
writing any extra code. For example, printf () and scanf () are library function and their
definition is stored in stdio header file.
2. User Defined Functions
User define function is the block of code written by programmer to perform a particular
task. As compiler doesn’t have any idea about the user define function so programmer
has to define and declare these functions inside the program body. Programmer can
define these function outside the main function but declaration of user define function
should present in main function only. Whenever compiler executes function call
(function declaration) then compiler shift the flow of program execution to the definition
part of user define function.
Example
#include <stdio.h>
#include<conio.h>
int add (int x, int y)
{
int sum;
sum = x + y;
return (sum);
}
main ()
3. {
inta,b,c;
a = 15;
b = 25;
c = add(a,b);
printf ("n Addition is %d ", c);
}
Output:
Addition is 40
There are two ways to pass the parameters to the function
1. Parameter Passing by value
In this mechanism, the value of the parameter is passed while calling the function.
2. Parameter Passing by reference
In this mechanism, the address of the parameter is passed while calling the function.
6.3 Parameter Passing In Functions, Call By Value
Parameter Passing by Value
This is the default way of passing the parameters to the function. This is achieved by
passing the copy of data to the function. This mechanism is also called as call by value.
In case of parameter passing by value, the changes made to the formal arguments in the
called function have no effect on the values of actual arguments in the calling function.
This mechanism is used when programmer don't want to change the value of passed
parameters. When parameters are passed by value then functions in C create copies of
the passed in variables and do required processing on these copied variables.
4. Pass-by-value is implemented by actual data transfer so additional storage is required to
maintain the copies of passed parameters.
Example:
#include <stdio.h>
#include<conio.h>
/* function declaration goes here.*/
void swap( int p1, int p2 );
int main()
{
int a = 10;
int b = 20;
printf("Before: Value of a = %d and value of b = %dn", a, b );
swap( a, b );
printf("After: Value of a = %d and value of b = %dn", a, b );
getch();
}
void swap( int p1, int p2 )
{
int t;
t = p2;
p2 = p1;
p1 = t;
5. printf("Value of a (p1) = %d and value of b(p2) = %dn", p1, p2 );
}
Output :
Before: Value of a = 10 and value of b = 20
Value of a (p1) = 20 and value of b (p2) = 10
After: Value of a = 10 and value of b = 20
Note: In the above example the values of “a” and “b” remain unchanged before calling
swap function and after calling swap function.
Parameter Passing by Reference
This mechanism is used when programmer want a function to do the changes in passed
parameters and reflect those changes back to the calling function. This mechanism is
also called as call by reference. This is achieved by passing the address of variable to
the function and function body can directly work over the addresses. Advantage of pass
by reference is efficiency in both time and space. Whereas disadvantages are access to
formal parameters is slow and inadvertent and erroneous changes may be made to the
actual parameter.
Example:
#include <stdio.h>
#include<conio.h>
void swap( int *p1, int *p2 );
int main()
{
int a = 10;
int b = 20;
printf("Before: Value of a = %d and value of b = %dn", a, b );
6. swap(&a, &b );
printf("After: Value of a = %d and value of b = %dn", a, b );
}
void swap( int *p1, int *p2 )
{
int t;
t = *p2;
*p2 = *p1;
*p1 = t;
printf("Value of a (p1) = %d and value of b(p2) = %dn", *p1, *p2 );
}
Output :
Before: Value of a = 10 and value of b = 20
Value of a (p1) = 20 and value of b(p2) = 10
After: Value of a = 20 and value of b = 10
Note: In the above example the values of “a” and “b” are changes after calling swap
function.
6.4 Passing Arrays To Functions: Idea Of Call By Reference
Array is a data structure which stores the collection of similar types of element in
consecutive memory locations. Indexing of array always start with ‘0’ where as non-
graphical variable ‘0’ indicates the end of array. Syntax for declaring array is
data type array name[Maximum size];
7. Data types are used to define type of element in an array. Data types are also
useful in finding the size of total memory locations allocated for the array.
All the rules of defining name of variable are also applicable for the array name.
Maximum size indicates the total number of maximum elements that array can
hold.
Total memory allocated for the array is equal to the memory required to store one
element of the array multiply by the total element in the array.
In array, memory allocation is done at the time of declaration of an array.
Example:
Sr. No. Instructions Description
1. #include<stdio.h> Header file included
2. #include<conio.h> Header file included
3. void main() Execution of program begins
4. { Memory is allocated for variable i,n and
array a
5. inti,n,a[10];
6. clrscr(); Clear the output of previous screen
7. printf("enter a
number");
Print “enter a number”
8. scanf("%d",&n); Input value is stored at the addres of
variable n
9. for(i=0;i<=10;i++) For loop started from value of i=0 to i=10
10. { Compound statement(scope of for loop
starts)
11. a[i]=n*i; Result of multiplication of n and I is stored
at the ith location of array ieasi=0 so it is
stores at first location.
12. printf("n %d",a[i]); Value of ith location of the array is printed
13. } Compound statement(scope of for loop
ends)
14. printf("n
first element in
array is %d",a[0]);
Value of first element of the array
is printed
15. printf("n fifth
element in array is
%d",a[4]);
Value of fifth element of the array is
printed
16. printf("n tenth
element in array is
Value of tenth element of the array is
printed
8. %d",a[9]);
17. getch(); Used to hold the output screen
18. } Indicates end of scope of main function
This is the default way of passing the parameters to the function. This is achieved by
passing the copy of data to the function. This mechanism is also called as call by value.
In case of parameter passing by value, the changes made to the formal arguments in the
called function have no effect on the values of actual arguments in the calling function.
This mechanism is used when programmer don't want to change the value of passed
parameters. When parameters are passed by value then functions in C create copies of
the passed in variables and do required processing on these copied variables.
Pass-by-value is implemented by actual data transfer so additional storage is required to
maintain the copies of passed parameters.
Example:
#include <stdio.h>
#include<conio.h>
/* function declaration goes here.*/
void swap( int p1, int p2 );
int main()
{
int a = 10;
int b = 20;
printf("Before: Value of a = %d and value of b = %dn", a, b );
swap( a, b );
printf("After: Value of a = %d and value of b = %dn", a, b );
getch();
9. }
void swap( int p1, int p2 )
{
int t;
t = p2;
p2 = p1;
p1 = t;
printf("Value of a (p1) = %d and value of b(p2) = %dn", p1, p2 );
}
Output :
Before: Value of a = 10 and value of b = 20
Value of a (p1) = 20 and value of b (p2) = 10
After: Value of a = 10 and value of b = 20
Note: In the above example the values of “a” and “b” remain unchanged before calling
swap function and after calling swap function.
Reference
Brian W. Kernighan And Dennis M. Ritchie, The C Programming Language, Prentice
Hall Of India
YashwantKanetkar, Let Us C, Bpb Publication