This document discusses functions in C programming. It covers scope rules, formal vs actual arguments, return statements, passing arguments to functions, and math library functions. Specifically, it explains that formal arguments are variable names in a function prototype while actual arguments are the values passed during a function call. It also discusses that changing a formal argument value inside a function does not change the actual argument in the calling function due to scope rules. The document concludes with examples of common math library functions like sqrt() that perform calculations and return double values.
Android Application Development - Level 3Isham Rashik
Final level of the Android Application Development series. With this tutorial documentation, this will enable mobile developers to gain complete basic knowledge of Android Development. After completing all 3 of the levels, the developers can proceed with intermediary and advanced concepts.
C++ (pronounced "see plus plus") is a computer programming language based on C. It was created for writing programs for many different purposes. In the 1990s, C++ became one of the most used programming languages in the world.
The C++ programming language was developed by Bjarne Stroustrup at Bell Labs in the 1980s, and was originally named "C with classes". The language was planned as an improvement on the C programming language, adding features based on object-oriented programming. Step by step, a lot of advanced features were added to the language, like operator overloading, exception handling and templates.
Android Application Development - Level 3Isham Rashik
Final level of the Android Application Development series. With this tutorial documentation, this will enable mobile developers to gain complete basic knowledge of Android Development. After completing all 3 of the levels, the developers can proceed with intermediary and advanced concepts.
C++ (pronounced "see plus plus") is a computer programming language based on C. It was created for writing programs for many different purposes. In the 1990s, C++ became one of the most used programming languages in the world.
The C++ programming language was developed by Bjarne Stroustrup at Bell Labs in the 1980s, and was originally named "C with classes". The language was planned as an improvement on the C programming language, adding features based on object-oriented programming. Step by step, a lot of advanced features were added to the language, like operator overloading, exception handling and templates.
This lecture talks about parsing. Briefly gives overview on lexicon, categorization, grammar rules, syntactic tree, word senses and various challenges of natural language processing
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
Advantages and Disadvantages of CMS from an SEO Perspective
Lec 10. Functions (Part II)
1. Lecture 10Lecture 10
Version 1.0Version 1.0
More on FunctionsMore on Functions
Scope RulesScope Rules
Math Library FunctionsMath Library Functions
2. 2Rushdi Shams, Dept of CSE, KUET, Bangladesh
More Knowledge on FunctionsMore Knowledge on Functions
Actual Arguments
Formal Arguments
3. 3Rushdi Shams, Dept of CSE, KUET, Bangladesh
More Knowledge on FunctionsMore Knowledge on Functions
Instead of using different variable namesInstead of using different variable names xx,, yy
andand zz, we could have used the same variable, we could have used the same variable
namesnames aa,, bb andand cc
compiler would still treat them as differentcompiler would still treat them as different
variables since they are in different functionsvariables since they are in different functions
4. 4Rushdi Shams, Dept of CSE, KUET, Bangladesh
More Knowledge on FunctionsMore Knowledge on Functions
There is no restriction on the number ofThere is no restriction on the number of returnreturn
statements that may be present in a functionstatements that may be present in a function
returnreturn statement need not always be present at the endstatement need not always be present at the end
of the called functionof the called function
5. 5Rushdi Shams, Dept of CSE, KUET, Bangladesh
More Knowledge on FunctionsMore Knowledge on Functions
All the following are validAll the following are valid returnreturn statementsstatements
In the last statement a garbage value is returned to theIn the last statement a garbage value is returned to the
calling function since we are not returning any specificcalling function since we are not returning any specific
valuevalue
Note that in this case the parentheses afterNote that in this case the parentheses after returnreturn areare
droppeddropped
6. 6Rushdi Shams, Dept of CSE, KUET, Bangladesh
More Knowledge on FunctionsMore Knowledge on Functions
A function can return only one value at a timeA function can return only one value at a time
the following statements are invalidthe following statements are invalid
7. 7Rushdi Shams, Dept of CSE, KUET, Bangladesh
More Knowledge on FunctionsMore Knowledge on Functions
If the value of a formal argument is changed in theIf the value of a formal argument is changed in the
called function, the corresponding change does not takecalled function, the corresponding change does not take
place in the calling functionplace in the calling function
8. 8Rushdi Shams, Dept of CSE, KUET, Bangladesh
More Knowledge on FunctionsMore Knowledge on Functions
9. 9Rushdi Shams, Dept of CSE, KUET, Bangladesh
Calling ConventionsCalling Conventions
Calling convention indicates the order inCalling convention indicates the order in
which arguments are passed to a functionwhich arguments are passed to a function
when a function call is encounteredwhen a function call is encountered
There are two possibilities here:There are two possibilities here:
1.1. Arguments might be passed from left to right.Arguments might be passed from left to right.
2.2. Arguments might be passed from right to left.Arguments might be passed from right to left.
C language follows the second orderC language follows the second order
10. 10Rushdi Shams, Dept of CSE, KUET, Bangladesh
Calling ConventionsCalling Conventions
In this call it doesn’t matter whether the argumentsIn this call it doesn’t matter whether the arguments
are passed from left to right or from right to leftare passed from left to right or from right to left
However, in some function call the order of passingHowever, in some function call the order of passing
arguments becomes an important considerationarguments becomes an important consideration
12. 12Rushdi Shams, Dept of CSE, KUET, Bangladesh
Scope RulesScope Rules
The scope of an identifier is the portion of theThe scope of an identifier is the portion of the
program in which an identifier is referencedprogram in which an identifier is referenced
When we declare a local variable in a block, itWhen we declare a local variable in a block, it
can be referenced only in that block or in blockscan be referenced only in that block or in blocks
nested within that blocknested within that block
14. 14Rushdi Shams, Dept of CSE, KUET, Bangladesh
Math Library FunctionsMath Library Functions
Math library functions allow the programmer toMath library functions allow the programmer to
perform certain common mathematical calculationsperform certain common mathematical calculations
A programmer desiring to calculate and print the squareA programmer desiring to calculate and print the square
root of 900.0 can write-root of 900.0 can write-
15. 15Rushdi Shams, Dept of CSE, KUET, Bangladesh
Math Library FunctionsMath Library Functions
When the statement is executed, sqrt() is called toWhen the statement is executed, sqrt() is called to
calculate the square root of the number contained incalculate the square root of the number contained in
the parenthesis (900.0)the parenthesis (900.0)
The number 900.0 is the argument of sqrt() functionThe number 900.0 is the argument of sqrt() function
The statement will print 30.00The statement will print 30.00
sqrt() function takes an argument of type double andsqrt() function takes an argument of type double and
returns a result of type doublereturns a result of type double
All math library functions return the data type doubleAll math library functions return the data type double
16. 16Rushdi Shams, Dept of CSE, KUET, Bangladesh
Math Library FunctionsMath Library Functions
If c1=13.0, d=3.0 and f=4.0, then the line would printIf c1=13.0, d=3.0 and f=4.0, then the line would print
5.005.00
17. 17Rushdi Shams, Dept of CSE, KUET, Bangladesh
Other Useful Math FunctionsOther Useful Math Functions