Data types in C
Showing posts with label C++. Show all posts
Showing posts with label C++. Show all posts
Friday, 21 June 2019
Thursday, 20 June 2019
C Program for Addition of Two Numbers
Irawen June 20, 2019 C No comments
Program for addition of two numbers
Output:

Code :-
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c;
printf("Enter a number:\n");
scanf("%d",&a);
printf("Enter another number:\n");
scanf("%d",&b);
c=a+b;
printf("The Sum is : \n=%d ",c);
return 0;
}
Output:
Code :-
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c;
printf("Enter a number:\n");
scanf("%d",&a);
printf("Enter another number:\n");
scanf("%d",&b);
c=a+b;
printf("The Sum is : \n=%d ",c);
return 0;
}
Monday, 17 June 2019
Saturday, 15 June 2019
Wednesday, 27 March 2019
Beginning C, 5th Edition (Expert's Voice in C) by Ivor Horton (Author)
Irawen March 27, 2019 C No comments
Beginning C, 5th Edition teaches you how to program using the widely-available C language. You'll begin from first-principles and progress through step-by-step examples to become a competent, C-language programmer. All you need are this book and any of the widely available free or commercial C or C++ compilers, and you'll soon be writing real C programs.
C is a foundational language that every programmer ought to know. C is the basis for C# used in Microsoft .NET programming. It is the basis for Objective-C used in programming for the iPhone, the iPad, and other Apple devices. It is the basis for the C++ that is widely used in a great many contexts, including the GNU Project. It underlies the Linux operating system and many of its utilities. Learning C provides a strong foundation for any programming care, and will even help you better understand more modern languages such as Java.
Beginning C is written by renowned author Ivor Horton. The book increases your programming expertise by guiding you through the development of fully working C applications that use what you've learned in a practical context. You’ll also be able to strike out on your own by trying the exercises included at the end of each chapter. At the end of the book you'll be confident in your skills with all facets of the widely-used and powerful C language.
- The only beginning-level book to cover the latest ANSI standard in C
- Revised to cover C99 features newly-supported by language compilers
- Emphasizes writing code after the first chapter
- Includes substantial examples relevant to intermediate users
Buy :
Beginning C, 5th Edition (Expert's Voice in C) Paperback – 13 Mar 2013 by Ivor Horton (Author)
PDF Download :
Beginning C, 5th Edition (Expert's Voice in C) Paperback – 13 Mar 2013 by Ivor Horton (Author)

Head First C Paperback – 2012 by Griffiths David (Author)
Irawen March 27, 2019 C No comments
Ever wished you could learn C from a book? Head First C provides a complete learning experience for C and structured imperative programming. With a unique method that goes beyond syntax and how-to manuals, this guide not only teaches you the language, it helps you understand how to be a great programmer. You will learn key areas such as language basics, pointers and pointer arithmetic and dynamic memory management. Advanced topics include multi-threading and network programming topics typically covered on a college-level course.
This book also features labs: in-depth projects intended to stretch your abilities, test your new skills and build confidence. Head First C mimics the style of college-level C courses, making it ideal as an accessible textbook for students.
We think your time is too valuable to waste struggling with new concepts. Using the latest research in cognitive science and learning theory to craft a multi-sensory learning experience, Head First C uses a visually rich format designed for the way your brain works, not a text-heavy approach that puts you to sleep.
Buy :
PDF Download :
Tuesday, 26 March 2019
C Programming Language 2nd Edition by Brian. W Kernighan (Author)
Irawen March 26, 2019 C No comments
C Programming Language 2nd Edition is a book that gives you just what you need to know about this powerful programming language. Unlike most of its rivals, which try to pack in irrelevant information as well, this book comes jam-packed with the most accurate and handy information that any lover of this programming language could possibly need. This second edition is inclusive of all the changes that have come about in the language, making the book a powerful resource for its readers.
This book proves itself to be a complete and accurate guide for ANSI standard C programming language. It has been written by the very same developers who developed C, which is beneficial for its readers, as it gives them the edge over other books. The book shows you exactly how you can make the most of the rich set of operators that C has to offer. It also familiarizes you with other concepts that include improved control flow, economy of expression and data structures as well.
The second edition of the book has been rewritten, so as to include many more examples than before. It also comes with problem sets that aim to clarify the doubts that you have, concerning the complicated language constructs of this language and their implementation as well.
C Programming Language 2nd Edition has been published by Pearson Education (Singapore) Pte. Ltd., in the year 2008 and is available in paperback.
Key Features
- The book is packed with multiple examples and problem sets.
- The recent edition of the book is inclusive of all the latest changes that have been made to the language.
Buy :
C Programming Language 2nd Edition Paperback – 2008 by Brian. W Kernighan (Author)
PDF Download :
C Programming Language 2nd Edition Paperback – 2008 by Brian. W Kernighan (Author)
Monday, 9 April 2018
Pointer and Function
Irawen April 09, 2018 C No comments
The pointers are very much used in a function. Sometimes only with a pointer a complex function can be easily represented and success. The usage of the pointers in a function defintion may be classified into two groups.
1. Call by Value.
2. Call by reference
Call by Value
We have seen that a function in invoked there will be a link established between the formal and actual parameters. A temporary storage is created where the value of actual parameters is stored.
The formal parameters picks up its value from storage area the mechanism of data transfer between actual parameters mechanism of data transfer is referred as call by value.
The corresponding formal parameters represents a local variable in the called function.
This will not change the value of actual parameters.
#include<stdio.h>
void main( )
{
int x,y;
x=20;
y=30;
printf("\n Value of a and b before function call = %d%d",a,b);
fucn(x,y);
printf("\n Value of a and b after function call = %d%d",a,b);
}
fucn(p,q)
int p,q;
{
p=p+q;
q=q+q;
}
Call by Reference
When we pass address to a function the parameters receiving the address should be pointers. The process of calling a function by using pointers to pass the address of the variable is known as call by reference . The function which is called by reference can change the value of the variable used in the call.
/* Example of call by reference */
#include<stdio.h>
void main( )
{
int x, y;
x=20;
y=30;
printf("\n Value of a and b before function call = %d%d",a,b);
fucn(&x,&y);
printf("\n Value of a and b after function call = %d%d", a,b);
}
fucn(p,q)
int p,q;
{
*p=*p + *p;
*q=*q + *q;
}
1. Call by Value.
2. Call by reference
Call by Value
We have seen that a function in invoked there will be a link established between the formal and actual parameters. A temporary storage is created where the value of actual parameters is stored.
The formal parameters picks up its value from storage area the mechanism of data transfer between actual parameters mechanism of data transfer is referred as call by value.
The corresponding formal parameters represents a local variable in the called function.
This will not change the value of actual parameters.
#include<stdio.h>
void main( )
{
int x,y;
x=20;
y=30;
printf("\n Value of a and b before function call = %d%d",a,b);
fucn(x,y);
printf("\n Value of a and b after function call = %d%d",a,b);
}
fucn(p,q)
int p,q;
{
p=p+q;
q=q+q;
}
Call by Reference
When we pass address to a function the parameters receiving the address should be pointers. The process of calling a function by using pointers to pass the address of the variable is known as call by reference . The function which is called by reference can change the value of the variable used in the call.
/* Example of call by reference */
#include<stdio.h>
void main( )
{
int x, y;
x=20;
y=30;
printf("\n Value of a and b before function call = %d%d",a,b);
fucn(&x,&y);
printf("\n Value of a and b after function call = %d%d", a,b);
}
fucn(p,q)
int p,q;
{
*p=*p + *p;
*q=*q + *q;
}
Popular Posts
-
In a world increasingly shaped by data, the demand for professionals who can make sense of it has never been higher. Businesses, governmen...
-
Microsoft Power BI Data Analyst Professional Certificate What you'll learn Learn to use Power BI to connect to data sources and transf...
-
If you're learning Python or looking to level up your skills, you’re in luck! Here are 6 amazing Python books available for FREE — c...
-
Introduction Artificial intelligence is rapidly transforming industries, creating a growing demand for professionals who can design, buil...
-
Large Language Models (LLMs) such as GPT, BERT, and other transformer-based systems have transformed the field of artificial intelligence....
-
Introduction Machine learning has become one of the most important technologies driving modern data science, artificial intelligence, and ...
-
How This Modern Classic Teaches You to Think Like a Computer Scientist Programming is not just about writing code—it's about developi...
-
1️⃣ x = (5) Even though it has parentheses, this is NOT a tuple . Python treats it as just the number 5 because there is no comma . So Pyth...
-
Learn to Program and Analyze Data with Python. Develop programs to gather, clean, analyze, and visualize data. Specialization - 5 course s...
-
Explanation: 1. Creating a List nums = [1, 2, 3] Explanation: nums is a variable name. [1, 2, 3] is a list in Python. The list contains th...
Categories
100 Python Programs for Beginner
(119)
AI
(219)
Android
(25)
AngularJS
(1)
Api
(7)
Assembly Language
(2)
aws
(28)
Azure
(9)
BI
(10)
Books
(262)
Bootcamp
(1)
C
(78)
C#
(12)
C++
(83)
Course
(86)
Coursera
(300)
Cybersecurity
(29)
data
(4)
Data Analysis
(27)
Data Analytics
(20)
data management
(15)
Data Science
(322)
Data Strucures
(16)
Deep Learning
(133)
Django
(16)
Downloads
(3)
edx
(21)
Engineering
(15)
Euron
(30)
Events
(7)
Excel
(19)
Finance
(10)
flask
(4)
flutter
(1)
FPL
(17)
Generative AI
(66)
Git
(10)
Google
(50)
Hadoop
(3)
HTML Quiz
(1)
HTML&CSS
(48)
IBM
(41)
IoT
(3)
IS
(25)
Java
(99)
Leet Code
(4)
Machine Learning
(262)
Meta
(24)
MICHIGAN
(5)
microsoft
(11)
Nvidia
(8)
Pandas
(13)
PHP
(20)
Projects
(32)
Python
(1264)
Python Coding Challenge
(1074)
Python Mistakes
(50)
Python Quiz
(442)
Python Tips
(5)
Questions
(3)
R
(72)
React
(7)
Scripting
(3)
security
(4)
Selenium Webdriver
(4)
Software
(19)
SQL
(46)
Udemy
(17)
UX Research
(1)
web application
(11)
Web development
(8)
web scraping
(3)


