Enabling immediate and 24/7 communication
Automating communication
Overcoming geographical barriers
Enabling more effective and real-time collaboration
Increasing transparency
Decentralizing decision making
Agar, J., 2003. Constant Touch: A Global History of the Mobile Phone. Cambridge: Icon Books.
Barry, W., 1999. Networks in the Global Village. Boulder Colo: Westview Press.
Caron, A, & Caronia, L., 2007. Moving cultures: mobile communication in everyday life. Montreal: McGill-Queen’s University Press.
Castells, M., 1996. The Information Age: Economy, Society and Culture, Volume 1.The Rise of the Network Society. Oxford: Blackwell.
Daniel, C., & Rod, M., 2011.The Dictionary of Media and Communications. Oxford: Oxford University Press.
Many of the business processes today involve communications like messaging/chatbots, email marketing, and social media engagement to reach out to the target customers. The growth and widespread adoption of social media platforms, video conferencing tools and emailing platforms have made virtual communication a new normal in the COVID reign
Postman, N., 1992. Technopoly: The surrender of culture to technology. New York: Vintage Books.
Reid, D. J. & Reid F. J. M., 2004. Insights into the Social and Psychological Effects of SMS Text Messaging. Web.
Richard, L., 2004. The Mobile Connection: The Cell Phone’s Impact on Society. San Francisco Morgan: Kaufmann.
Soukup, C., 2008. ‘Magic Screens: Everyday Life in an Era of Ubiquitous and Mobile Media Screens’, presented at 94th annual Convention. San Diego.
Stephen, J., 1997. Interface Culture: How New Technology Transforms the Way We Create and Communicate. San Francisco: Basic Books.
Tofts, D., 1997. ‘The technology within’ in memory trade: A Prehistory of Cyberculture, North Ryde: 21C Books.
1. DISCOVER . LEARN . EMPOWER
Structure: Structure and functions, Structures
and pointers
INSTITUTE - UIE
DEPARTMENT- ACADEMIC UNIT-2
Bachelor of Engineering (Computer Science & Engineering)
Subject Name: Introduction to Problem Solving
Code:23CSH-101
2. Introduction to
Problem Solving
Course Objectives
2
The course aims to provide exposure to problem-
solving through programming.
The course aims to raise the programming skills
of students via logic building capability.
With knowledge of C programming language,
students would be able to model real world
problems.
3. 3
CO
Number
Course Outcome
CO1 Remember the concepts related to fundamentals of C language,
draw flowcharts and write algorithm/pseudocode.
CO2 Understand the way of execution and debug programs in C
language.
CO3 Apply various constructs, loops, functions to solve mathematical
and scientific problem.
CO4 Analyze the dynamic behavior of memory by the use of pointers.
CO5 Design and develop modular programs for real world problems
using control structure and selection structure.
Course Outcomes
5. Structure and Pointers
• Pointer to structure: Pointer which stores address of structure is called as “Pointer to
Structure “.
• Explanation :
1. sptr is pointer to structure address.
2. -> and (*). both represents the same.
3. These operators are used to access data member of structure by using structure’s
pointer.
5
6. • Example: Program to create a structure and display the content using
pointer.
#include<stdio.h>
struct team {
char *name;
int members;
char captain[20];
}
t1 = {"India",11,"Dhoni"} , *sptr = &t1;
int main()
{
printf("nTeam : %s",(*sptr).name);
printf("nMemebers : %d",sptr->members);
printf("nCaptain : %s",(*sptr).captain);
return 0;
}
6
Output:
7. 7
Summary
A structure can be passed to
any function from main
function or from any sub
function.
Structure definition will be
available within the function
only.
It won’t be available to other
functions unless it is passed to
those functions by value or by
address
Else, we have to declare
structure variable as global
variable. That means, structure
variable should be declared
outside the main function. So,
this structure will be visible to
all the functions in a C program.
To access members of a
structure using pointers, we use
the -> operator.
We can also initialize the array
of structures using the same
syntax as that for initializing
arrays.
8. Frequently Asked Questions
Q1 Write a Program to enter the employee Information & display the data passing Structures By Using
Pointers
Expected Output:
Enter the name of the Employee : John
Enter the Employee Id : 16
Enter Experience of the Employee : 3
---------Details List---------
Employee Name : ram
Employee Id : 16
Employee Experience : 3
Solution:
8
10. Assessment Questions:
10
1. Write a Program to demonstrate How to return multiple values from a function in C?
2. Program to add two distances in inch-feet system(Passing structure).
12. REFERENCES
Reference Books
1. Programming in C by Reema Thareja.
2. Programming in ANSI C by E. Balaguruswamy, Tata McGraw Hill.
3. Programming with C (Schaum's Outline Series) by Byron Gottfried Jitender
Chhabra, Tata McGraw Hill.
4. The C Programming Language by Brian W. Kernighan, Dennis Ritchie, Pearson
education.
Websites:
1. https://fresh2refresh.com/c-programming/c-passing-struct-to-function/
2. https://www.geeksforgeeks.org/how-to-pass-or-return-a-structure-to-from-a-
function-in-c-c/
3. https://www.studytonight.com/c/pointers-to-structure-in-c.php
4. https://dev.to/mikkel250/structures-and-pointers-in-c-n6i
5. https://www.programiz.com/c-programming/c-structures-pointers
YouTube Links:
1. https://www.youtube.com/watch?v=4HC8X966Q5M
2. https://www.youtube.com/watch?v=VF40lxbXR_0
12