This tutorial by Simplilearn will explain to you about Operators In C Programming. This Operators In C Programming tutorial will help you learn Arithmetic, Relational, Logical Operators In C, bitwise, and assignment operators in C. This C programming tutorial will cover both theoretical and practical demonstrations for a better learning experience on unary, binary, and ternary Operators in C.
An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations.
C language supports a rich set of built-in operators. An operator is a symbol that tells the compiler to perform certain mathematical or logical manipulations. Operators are used in program to manipulate data and variables.
This tutorial by Simplilearn will explain to you about Operators In C Programming. This Operators In C Programming tutorial will help you learn Arithmetic, Relational, Logical Operators In C, bitwise, and assignment operators in C. This C programming tutorial will cover both theoretical and practical demonstrations for a better learning experience on unary, binary, and ternary Operators in C.
An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations.
C language supports a rich set of built-in operators. An operator is a symbol that tells the compiler to perform certain mathematical or logical manipulations. Operators are used in program to manipulate data and variables.
The Art of Unit Testing - Towards a Testable DesignVictor Rentea
Slides of the Talk I gave at Devoxx Belgium 2019.
=== Abstract ===
Focusing on the creative work without being terrified of breaking the existing behavior can make software development very addictive! Good automated tests can buy you that!
However, if your tests are not maintainable they may end up slowing you down and causing you painful headaches, compilation errors and spurious failures. To avoid that, your unit tests should be significant; expressive; clean; DRY; non-overlapping; and blazing fast. Writing good tests becomes the toughest challenge for any developer, no matter how battle-hardened: you need to balance risk with test maintenance costs, while looking out for test design smells that call for [risky] refactoring to drive your design towards a set of key principles (included:).
Principles that will end up shaping the way you craft the Production code itself. Because in the end, a good, clean design is more important than coverage%.
But testing gives you the best feedback to get there.
Grab a black coffee and join this snippet from Victor’s Pro Unit Testing #training, to learn about testing priorities, buggy tests, the shared @Before, Mocks vs Stubs and how to reduce them by "purifying" your logic, testing Legacy Code and refactoring @Spy-es out.
All of that in an entertaining, dynamic and memorable session.
Learn C# Programming - Data Types & Type ConversionEng Teong Cheah
Add C# syntax to your vocabulary by exploring fundamental building blocks: data types. In addition, learn about basic topics, such as naming conventions and data type conversions.
Are you using Java8 Lambdas & Streams in your core business logic? Then you might be having this strange feeling that it’s not Java anymore: at times it’s cryptic, barely readable.. This was the topic of the workshop with the same name that I held at VoxxedDays Bucharest 2017. These are the slides backing the that workshop.
As a summary, the materials walk through the functional features of Java8, adding details along the way about how we can keep the code clean as we embrace the Java 8 features.
The entire desktop screencast + voice it's on youtube, here: https://youtu.be/uH9A37k2QkU
https://youtu.be/cSH1dm9dXHM
This video explains about Range based for loop which can be used to traverse the elements of any container.
It demonstrates with primitive arrays, vectors and list.
Capture the traversed elements by value and by reference.
It also demonstrates using auto to simplify the declarations.
Decision Making in Java (if, if-else, switch, break, continue, jump) Decision Making in programming is similar to decision making in real life. A programming language uses control statements to control the flow of execution of program based on certain conditions.
This book is intended for education and fun. Python is an amazing, text-based coding language, perfectly suited for children older than the age of 10. The Standard Python library has a module called Turtle which is a popular way to introduce programming to kids. This library enables children to create pictures and shapes by providing them with a virtual canvas. With the Python Turtle library, you can create nice animation projects using images that are taken from the internet, scaled-down stored as a gif-files download to the projects. The book includes 19 basic lessons with examples that introduce to the Python codes through Turtle library which is convenient to the school students of 10+years old. The book has also a lot of projects that show how to make different animations with Turtle graphics: games, applications to math, physics, and science.
This presentation explains about operator overloading in C++.
It explains how to overload using member functions and friend functions. It discusses about the operators which can be overloaded only using member function and the operators which cannot be overloaded.
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.
Ultra Personalized Products and Services in healthcare explained by Frens Pries, Maureen van Eijnatten, Allessandro Zomparellei and Bart Ahsmann - presented at CLICKNL DRIVE during the Dutch Design Week 2015
The Art of Unit Testing - Towards a Testable DesignVictor Rentea
Slides of the Talk I gave at Devoxx Belgium 2019.
=== Abstract ===
Focusing on the creative work without being terrified of breaking the existing behavior can make software development very addictive! Good automated tests can buy you that!
However, if your tests are not maintainable they may end up slowing you down and causing you painful headaches, compilation errors and spurious failures. To avoid that, your unit tests should be significant; expressive; clean; DRY; non-overlapping; and blazing fast. Writing good tests becomes the toughest challenge for any developer, no matter how battle-hardened: you need to balance risk with test maintenance costs, while looking out for test design smells that call for [risky] refactoring to drive your design towards a set of key principles (included:).
Principles that will end up shaping the way you craft the Production code itself. Because in the end, a good, clean design is more important than coverage%.
But testing gives you the best feedback to get there.
Grab a black coffee and join this snippet from Victor’s Pro Unit Testing #training, to learn about testing priorities, buggy tests, the shared @Before, Mocks vs Stubs and how to reduce them by "purifying" your logic, testing Legacy Code and refactoring @Spy-es out.
All of that in an entertaining, dynamic and memorable session.
Learn C# Programming - Data Types & Type ConversionEng Teong Cheah
Add C# syntax to your vocabulary by exploring fundamental building blocks: data types. In addition, learn about basic topics, such as naming conventions and data type conversions.
Are you using Java8 Lambdas & Streams in your core business logic? Then you might be having this strange feeling that it’s not Java anymore: at times it’s cryptic, barely readable.. This was the topic of the workshop with the same name that I held at VoxxedDays Bucharest 2017. These are the slides backing the that workshop.
As a summary, the materials walk through the functional features of Java8, adding details along the way about how we can keep the code clean as we embrace the Java 8 features.
The entire desktop screencast + voice it's on youtube, here: https://youtu.be/uH9A37k2QkU
https://youtu.be/cSH1dm9dXHM
This video explains about Range based for loop which can be used to traverse the elements of any container.
It demonstrates with primitive arrays, vectors and list.
Capture the traversed elements by value and by reference.
It also demonstrates using auto to simplify the declarations.
Decision Making in Java (if, if-else, switch, break, continue, jump) Decision Making in programming is similar to decision making in real life. A programming language uses control statements to control the flow of execution of program based on certain conditions.
This book is intended for education and fun. Python is an amazing, text-based coding language, perfectly suited for children older than the age of 10. The Standard Python library has a module called Turtle which is a popular way to introduce programming to kids. This library enables children to create pictures and shapes by providing them with a virtual canvas. With the Python Turtle library, you can create nice animation projects using images that are taken from the internet, scaled-down stored as a gif-files download to the projects. The book includes 19 basic lessons with examples that introduce to the Python codes through Turtle library which is convenient to the school students of 10+years old. The book has also a lot of projects that show how to make different animations with Turtle graphics: games, applications to math, physics, and science.
This presentation explains about operator overloading in C++.
It explains how to overload using member functions and friend functions. It discusses about the operators which can be overloaded only using member function and the operators which cannot be overloaded.
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.
Ultra Personalized Products and Services in healthcare explained by Frens Pries, Maureen van Eijnatten, Allessandro Zomparellei and Bart Ahsmann - presented at CLICKNL DRIVE during the Dutch Design Week 2015
Full service PR consultancy servicing over 290+ retainer clients;
Part of PROI worldwide – a global network of independent firms with a presence in over 50 countries.
Highlighted key points on the following concepts of C Language,I/O Functions,Bitwise operators, preincrement operator,post increment operator ,storage class,functions,Sample Code Snippets
C++ is a middle-level programming language developed by Bjarne Stroustrup starting in 1979 at Bell Labs. C++ runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.
This reference will take you through simple and practical approach while learning C++ Programming language.
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxrickgrimesss22
Discover the essential features to incorporate in your Winzo clone app to boost business growth, enhance user engagement, and drive revenue. Learn how to create a compelling gaming experience that stands out in the competitive market.
Globus Connect Server Deep Dive - GlobusWorld 2024Globus
We explore the Globus Connect Server (GCS) architecture and experiment with advanced configuration options and use cases. This content is targeted at system administrators who are familiar with GCS and currently operate—or are planning to operate—broader deployments at their institution.
In software engineering, the right architecture is essential for robust, scalable platforms. Wix has undergone a pivotal shift from event sourcing to a CRUD-based model for its microservices. This talk will chart the course of this pivotal journey.
Event sourcing, which records state changes as immutable events, provided robust auditing and "time travel" debugging for Wix Stores' microservices. Despite its benefits, the complexity it introduced in state management slowed development. Wix responded by adopting a simpler, unified CRUD model. This talk will explore the challenges of event sourcing and the advantages of Wix's new "CRUD on steroids" approach, which streamlines API integration and domain event management while preserving data integrity and system resilience.
Participants will gain valuable insights into Wix's strategies for ensuring atomicity in database updates and event production, as well as caching, materialization, and performance optimization techniques within a distributed system.
Join us to discover how Wix has mastered the art of balancing simplicity and extensibility, and learn how the re-adoption of the modest CRUD has turbocharged their development velocity, resilience, and scalability in a high-growth environment.
Check out the webinar slides to learn more about how XfilesPro transforms Salesforce document management by leveraging its world-class applications. For more details, please connect with sales@xfilespro.com
If you want to watch the on-demand webinar, please click here: https://www.xfilespro.com/webinars/salesforce-document-management-2-0-smarter-faster-better/
Quarkus Hidden and Forbidden ExtensionsMax Andersen
Quarkus has a vast extension ecosystem and is known for its subsonic and subatomic feature set. Some of these features are not as well known, and some extensions are less talked about, but that does not make them less interesting - quite the opposite.
Come join this talk to see some tips and tricks for using Quarkus and some of the lesser known features, extensions and development techniques.
Enhancing Research Orchestration Capabilities at ORNL.pdfGlobus
Cross-facility research orchestration comes with ever-changing constraints regarding the availability and suitability of various compute and data resources. In short, a flexible data and processing fabric is needed to enable the dynamic redirection of data and compute tasks throughout the lifecycle of an experiment. In this talk, we illustrate how we easily leveraged Globus services to instrument the ACE research testbed at the Oak Ridge Leadership Computing Facility with flexible data and task orchestration capabilities.
May Marketo Masterclass, London MUG May 22 2024.pdfAdele Miller
Can't make Adobe Summit in Vegas? No sweat because the EMEA Marketo Engage Champions are coming to London to share their Summit sessions, insights and more!
This is a MUG with a twist you don't want to miss.
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...Juraj Vysvader
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I didn't get rich from it but it did have 63K downloads (powered possible tens of thousands of websites).
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Globus
The U.S. Geological Survey (USGS) has made substantial investments in meeting evolving scientific, technical, and policy driven demands on storing, managing, and delivering data. As these demands continue to grow in complexity and scale, the USGS must continue to explore innovative solutions to improve its management, curation, sharing, delivering, and preservation approaches for large-scale research data. Supporting these needs, the USGS has partnered with the University of Chicago-Globus to research and develop advanced repository components and workflows leveraging its current investment in Globus. The primary outcome of this partnership includes the development of a prototype enterprise repository, driven by USGS Data Release requirements, through exploration and implementation of the entire suite of the Globus platform offerings, including Globus Flow, Globus Auth, Globus Transfer, and Globus Search. This presentation will provide insights into this research partnership, introduce the unique requirements and challenges being addressed and provide relevant project progress.
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdfJay Das
With the advent of artificial intelligence or AI tools, project management processes are undergoing a transformative shift. By using tools like ChatGPT, and Bard organizations can empower their leaders and managers to plan, execute, and monitor projects more effectively.
Cyaniclab : Software Development Agency Portfolio.pdfCyanic lab
CyanicLab, an offshore custom software development company based in Sweden,India, Finland, is your go-to partner for startup development and innovative web design solutions. Our expert team specializes in crafting cutting-edge software tailored to meet the unique needs of startups and established enterprises alike. From conceptualization to execution, we offer comprehensive services including web and mobile app development, UI/UX design, and ongoing software maintenance. Ready to elevate your business? Contact CyanicLab today and let us propel your vision to success with our top-notch IT solutions.
Developing Distributed High-performance Computing Capabilities of an Open Sci...Globus
COVID-19 had an unprecedented impact on scientific collaboration. The pandemic and its broad response from the scientific community has forged new relationships among public health practitioners, mathematical modelers, and scientific computing specialists, while revealing critical gaps in exploiting advanced computing systems to support urgent decision making. Informed by our team’s work in applying high-performance computing in support of public health decision makers during the COVID-19 pandemic, we present how Globus technologies are enabling the development of an open science platform for robust epidemic analysis, with the goal of collaborative, secure, distributed, on-demand, and fast time-to-solution analyses to support public health.
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Globus
Large Language Models (LLMs) are currently the center of attention in the tech world, particularly for their potential to advance research. In this presentation, we'll explore a straightforward and effective method for quickly initiating inference runs on supercomputers using the vLLM tool with Globus Compute, specifically on the Polaris system at ALCF. We'll begin by briefly discussing the popularity and applications of LLMs in various fields. Following this, we will introduce the vLLM tool, and explain how it integrates with Globus Compute to efficiently manage LLM operations on Polaris. Attendees will learn the practical aspects of setting up and remotely triggering LLMs from local machines, focusing on ease of use and efficiency. This talk is ideal for researchers and practitioners looking to leverage the power of LLMs in their work, offering a clear guide to harnessing supercomputing resources for quick and effective LLM inference.
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Shahin Sheidaei
Games are powerful teaching tools, fostering hands-on engagement and fun. But they require careful consideration to succeed. Join me to explore factors in running and selecting games, ensuring they serve as effective teaching tools. Learn to maintain focus on learning objectives while playing, and how to measure the ROI of gaming in education. Discover strategies for pitching gaming to leadership. This session offers insights, tips, and examples for coaches, team leads, and enterprise leaders seeking to teach from simple to complex concepts.
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...informapgpstrackings
Keep tabs on your field staff effortlessly with Informap Technology Centre LLC. Real-time tracking, task assignment, and smart features for efficient management. Request a live demo today!
For more details, visit us : https://informapuae.com/field-staff-tracking/
How Recreation Management Software Can Streamline Your Operations.pptxwottaspaceseo
Recreation management software streamlines operations by automating key tasks such as scheduling, registration, and payment processing, reducing manual workload and errors. It provides centralized management of facilities, classes, and events, ensuring efficient resource allocation and facility usage. The software offers user-friendly online portals for easy access to bookings and program information, enhancing customer experience. Real-time reporting and data analytics deliver insights into attendance and preferences, aiding in strategic decision-making. Additionally, effective communication tools keep participants and staff informed with timely updates. Overall, recreation management software enhances efficiency, improves service delivery, and boosts customer satisfaction.
Large Language Models and the End of ProgrammingMatt Welsh
Talk by Matt Welsh at Craft Conference 2024 on the impact that Large Language Models will have on the future of software development. In this talk, I discuss the ways in which LLMs will impact the software industry, from replacing human software developers with AI, to replacing conventional software with models that perform reasoning, computation, and problem-solving.
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Anthony Dahanne
Les Buildpacks existent depuis plus de 10 ans ! D’abord, ils étaient utilisés pour détecter et construire une application avant de la déployer sur certains PaaS. Ensuite, nous avons pu créer des images Docker (OCI) avec leur dernière génération, les Cloud Native Buildpacks (CNCF en incubation). Sont-ils une bonne alternative au Dockerfile ? Que sont les buildpacks Paketo ? Quelles communautés les soutiennent et comment ?
Venez le découvrir lors de cette session ignite
2. int g_var = 5;
int main( )
{
int l_var = 8;
}
mohammed.sikander@cranessoftware.com 2
00000000 D g_var
00000000 T main
• Symbol table does not contain the
entries of local/automatic variables.
• gl is stored in Initialized Data Segment
• main is stored inText / Code Segment
3. int global = 5;
static int stglobal = 9;
int main( )
{
int local = 8;
static int stlocal = 3;
}
mohammed.sikander@cranessoftware.com 3
00000000 D global
00000000 T main
00000004 d stglobal
00000008 d stlocal.0
• d stands for Internal Linkage
• External variables will not have any
name mangling.
• Internal Linkage variables might have
name mangling.
4. 1. Can we have two static
variables with same name
but different functions.
2. What is the memory
segment of x.
3. How does the compiler
avoid name clashes.
mohammed.sikander@cranessoftware.com 4
void print( )
{
static int x = 5;
}
void display( )
{
static int x = 8;
}
int main( )
{
}
00000005 T display
0000000a T main
00000000 T print
00000000 d x.0
00000004 d x.1
Compiler uses different names for x.
5. int x = 5;
int main( )
{
int x = 10;
printf(“x = %d n “ , x);
}
mohammed.sikander@cranessoftware.com 5
static int x = 5;
int main( )
{
static int x = 10;
{
static int x = 12;
printf(“x = %d n “ , x);
}
}
6. FILE1.C
int x = 5;
void func( );
int main( )
{
func( );
}
FILE2.C
int x = 8;
void func( )
{
printf(" x = %d n" , x);
}
mohammed.sikander@cranessoftware.com 6
• Compile file1.c
• Compile file2.c
• Link file1.o and file2.o
• Observe the output
7. mohammed.sikander@cranessoftware.com 7
• [sikander@localhost nm]$ gcc file1.c -c
• [sikander@localhost nm]$ gcc file2.c –c
• [sikander@localhost nm]$ gcc file1.o file2.o
• file2.o(.data+0x0): multiple definition of `x'
• file1.o(.data+0x0): first defined here
• collect2: ld returned 1 exit status
[sikander@localhost nm]$ nm file1.o
U func
00000000 T main
00000000 D x
[sikander@localhost nm]$ nm file2.o
00000000 T func
U printf
00000000 D x
8. FILE1.C
static int x = 5;
void func( );
int main( )
{
printf(__func__ );
printf(" x = %d n",x);
func( );
}
FILE2.C
static int x = 8;
void func( )
{
printf("%s x = %d n" ,__func__ , x);
}
mohammed.sikander@cranessoftware.com 8
• Compile file1.c
• Compile file2.c
• Link file1.o and file2.o
• Observe the output
9. mohammed.sikander@cranessoftware.com 9
• $ gcc -c file1.c
• $ gcc -c file2.c
• $ gcc file1.o file2.o
• $ ./a.out
• main x = 5
• func x = 8
$ nm file1.o
U func
00000000r __func__.0
00000000T main
U printf
00000000 d x
$ nm file2.o
00000000T func
00000000r __func__.0
U printf
00000000 d x
080495dc d x
080495e0 d x
10. FILE1.C
int x = 5;
void func( );
int main( )
{
printf(__func__ );
printf(" x = %d n",x);
func( );
}
FILE2.C
extern int x;
void func( )
{
printf("%s x = %d n" ,__func__ , x);
}
mohammed.sikander@cranessoftware.com 10
• Compile file1.c
• Compile file2.c
• Link file1.o and file2.o
• Observe the output
11. FILE1.C
int x = 5;
void func( );
int main( )
{
printf(__func__ );
printf(" x = %d n",x);
func( );
}
FILE2.C
extern int x;
void func( )
{
printf("%s x = %d n" ,__func__ , x);
}
mohammed.sikander@cranessoftware.com 11
• Compile file1.c
• Compile file2.c
• Link file1.o and file2.o
• Observe the output
12. mohammed.sikander@cranessoftware.com 12
• $ gcc -c file1.c
• $ gcc -c file2.c
• $ gcc file1.o file2.o
• $ ./a.out
main x = 5
&x = 0x8049618
func x = 5
&x = 0x8049618
]$ nm file1.o
U func
00000000 r __func__.0
00000000 T main
U printf
00000000 D x
]$ nm file2.o
00000000 T func
00000000 r __func__.0
U printf
U x
$nm a.out
08049618 D x
13. FILE1.C
static int x = 5;
void func( );
int main( )
{
printf(__func__ );
printf(" x = %d n",x);
func( );
}
FILE2.C
extern int x;
void func( )
{
printf("%s x = %d n" ,__func__ , x);
}
mohammed.sikander@cranessoftware.com 13
• Compile file1.c
• Compile file2.c
• Link file1.o and file2.o
• Observe the output
14. mohammed.sikander@cranessoftware.com 14
• $ gcc -c file1.c
• $ gcc -c file2.c
• $ gcc file1.o file2.o
• file2.o(.text+0xb): In function `func':
• : undefined reference to `x‘
• collect2: ld returned 1 exit status
]$ nm file1.o
U func
00000000 r __func__.0
00000000 T main
U printf
00000000 d x
]$ nm file2.o
00000000 T func
00000000 r __func__.0
U printf
U x
15. static int x = 5;
int main( )
{
int x;
printf(“x = %d n”,x);
}
16. static int x = 5;
int main( )
{
extern int x;
printf(“x = %d n”,x);
}
17. int a = 5;
int b;
static int c = 7;
static int d;
int main( )
{
}
• Mention the memory segments of variables after
compiling (.o file) and after linking (a.out)
• What is the difference between a and c.
• Use nm utility to view the memory segments
$gcc –c file.c
$nm file.o
$gcc file.c
$nm ./a.out
18. $ gcc file.c -c
$ nm file.o
00000000 D a
00000004 C b
00000004 d c
00000000 b d
00000000 T main
mohammed.sikander@cranessoftware.com 18
•“C” The symbol is common.
• Common symbols are uninitialized
data.
• When linking, multiple common
symbols may appear with the same
name.
• If the symbol is defined anywhere, the
common symbols are treated as
undefined references.$ nm a.out
08049534 D a
08049544 B b
08049538 d c
08049540 b d
19. int x ;
int main( )
{
printf(“Main &x= %p” , &x);
printf(“x = %d n”, x);
func( );
}
int x ;
void func( )
{
printf(“Func &x= %p” , &x);
printf(“x = %d n”, x);
}
$ nm file1.o
U func
00000000 T main
U printf
00000004 C x
]$ nm file2.o
00000000 T func
U printf
00000004 C x
$nm a.out
08049600 B x
20. int x ;
int main( )
{
printf(“Main &x= %p” , &x);
printf(“x = %d n”, x);
func( );
}
int x = 5 ;
void func( )
{
printf(“Func &x= %p” , &x);
printf(“x = %d n”, x);
}
$ nm file2.o
00000000T func
U printf
00000000 D x
$ nm file1.o
U func
00000000 T main
U printf
00000004 C x
$nm a.out
08049600 D x
21. C C
B
C D
D
D D
Multiple Definition
d d
NoConflict, two different variables
b b
NoConflict, two different variables
d b
NoConflict, two different variables
b d
NoConflict, two different variables
b D
NoConflict, two different variables
22. void func( );
int x = 5; //D
int main( )
{
printf(“Main &x= %p” , &x);
printf(“x = %d n”, x);
func( );
}
int x = 10; //D
void func( )
{
printf(“Func &x= %p” , &x);
printf(“x = %d n”, x);
}
void func( );
static int x = 5; //d
int main( )
{
printf(“Main &x= %p” , &x);
printf(“x = %d n”, x);
func( );
}
int x = 10; //D
void func( )
{
printf(“Func &x= %p” , &x);
printf(“x = %d n”, x);
}
23. const int gc = 10;
static const int gsc = 12;
int main( )
{
const int lc = 5;
static const int lsc = 8;
}
00000000 R gc
00000004 r gsc
00000008 r lsc.0
00000000 T main
24. const int gc = 15; //ReadOnly
int main( )
{
const int lc = 5; //Stack
printf(“Enter the value for local const variable : “);
scanf(“ %d”,&lc);
printf(“LocalConst = %d n” , lc);
printf(“Enter the value for global const variable : “);
scanf(“ %d”,&gc);
printf(“GlobalConst = %d n”,gc);
}
[sikander@localhost ~]$ ./a.out
Enter the value for local const variable : 89
LocalConst = 89
Enter the value for global const variable : 6
Segmentation fault
25. [sikander@localhost ~]$ nm f1.o
00000000 t display
0000000a T main
00000005 T print
static void display()
{
}
void print()
{
}
int main( )
{
display( );
print( );
}
26. For any queries and feedback
Mail to
Mohammed.sikander@cranessoftware.com
sikander1248@gmail.com
mohammed.sikander@cranessoftware.com 26