-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPT2_diff.html
More file actions
203 lines (182 loc) · 11.9 KB
/
PT2_diff.html
File metadata and controls
203 lines (182 loc) · 11.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>CodingElite</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark navm">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">CodingElite</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link " aria-current="page" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="/codingelite.org/blog.html">Blog</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
C Tutorials
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="/codingelite.org/introduction.html">introduction</a></li>
<li><a class="dropdown-item" href="/codingelite.org/branching.html">Branching Statements</a></li>
<li><a class="dropdown-item" href="/codingelite.org/looping.html">looping statements</a></li>
<li><a class="dropdown-item" href="/codingelite.org/function.html">Function</a></li>
<li><a class="dropdown-item" href="/codingelite.org/array.html">Array</a></li>
<li><a class="dropdown-item" href="/codingelite.org/string.html">string</a></li>
<li><a class="dropdown-item" href="/codingelite.org/pointer.html">pointers</a></li>
<li><a class="dropdown-item" href="/codingelite.org/structure.html">structures</a></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" href="/codingelite.org/blog.html">More Topics</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="/codingelite.org/book.html">Books</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/codingelite.org/about.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/codingelite.org/contact.html">Contact us</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="bg-light">
<div class="container bg-c">
<div class="row">
<div class="col-md-9 conten">
<h2 class="hed"><b>Difference between C and C++</b></h2>
<div class="table-responsive">
<table summary="List of the data types and the rages." border="0">
<table>
<tr>
<th class="tabal-b tabal-c"><b>No.</b></th>
<th class="tabal-b tabal-c"><b> C</b></th>
<th class="tabal-b tabal-c"><b> C++</b></th>
</tr>
<tr>
<td class="tabal-b">1</td>
<td class="tabal-b">C is a structural or procedural programming language and does not support classes and objects.</td>
<td class="tabal-b">C++ is a combination of both procedural and object-oriented programming languages.</td>
</tr>
<tr>
<td class="tabal-b">2</td>
<td class="tabal-b">C is middle level programing language. </td>
<td class="tabal-b">C++ is high level programing language. </td>
</tr>
<tr>
<td class="tabal-b">3</td>
<td class="tabal-b">C was developed by Dennice Ritchie between 1969-1973 at AT&T Bell Labs.</td>
<td class="tabal-b">C++ was developed by Bjarne Stroustrup in 1979 .</td>
</tr>
<tr>
<td class="tabal-b">4</td>
<td class="tabal-b">In C scanf() and printf() functions are used for standard input and output.</td>
<td class="tabal-b">In c++ cin>> and cout<< used for standard input and output.</td>
</tr>
<tr>
<td class="tabal-b">5</td>
<td class="tabal-b">C does not support reference variable. </td>
<td class="tabal-b">c++ support reference variable.</td>
</tr>
<tr>
<td class="tabal-b">6</td>
<td class="tabal-b">In C programming Emphasis is on doing things (procedures).</td>
<td class="tabal-b">In c++ programming Emphasis is on data .</td>
</tr>
<tr>
<td class="tabal-b">7</td>
<td class="tabal-b">In C the Program is divided into functions.</td>
<td class="tabal-b">In C++ Programs are divided into objects.</td>
</tr>
<tr>
<td class="tabal-b">8 </td>
<td class="tabal-b">Global data can be accessed by external functions.</td>
<td class="tabal-b">-Data is hidden and cannot be accessed by external functions.</td>
</tr>
<tr>
<td class="tabal-b">9</td>
<td class="tabal-b">C follows top down approach in program design. </td>
<td class="tabal-b">C++ follows bottom-up approach in program design.</td>
</tr>
<tr>
<td class="tabal-b">10</td>
<td class="tabal-b">C is a subset of C++. </td>
<td class="tabal-b">C++ is a superset of C.</td>
</tr>
<tr>
<td class="tabal-b">11</td>
<td class="tabal-b">C Program files are saved with .C extention </td>
<td class="tabal-b">C++ Program files are saved with .CPP extention</td>
</tr>
<tr>
<td class="tabal-b">12</td>
<td class="tabal-b">C supports only Pointers.</td>
<td class="tabal-b">C++ supports both pointers and references.</td>
</tr>
</table>
</table>
</div>
</div>
<div class="col-md-3 slide-m">
<h3 class="hed-">Realated Popular Topics</h3>
<aside class="service-sidebar">
<div class="sidebar-menu-sub">
<ul class="ul-slide">
<li class="li-slide"><a class="a-slide" href="/codingelite.org/PT1_WhatC.html"><b>What is c programming?</b></a></li>
<li class="li-slide"><a class="a-slide" href="/codingelite.org/PT2_diff.html"><b>Difference between c and c++.</b></a></li>
<li class="li-slide"><a class="a-slide" href="/codingelite.org/PT3_advArray.html"><b>Advantages and disadvantages of Array.</b></a></li>
<li class="li-slide"><a class="a-slide" href="/codingelite.org/PT4_appli.html"><b>Application of C programming.</b></a></li>
<li class="li-slide"><a class="a-slide" href="/codingelite.org/PT5I_compiler.html"><b>Which compilers used for C programming?</b></a></li>
<li class="li-slide"><a class="a-slide" href="/codingelite.org/PT5I_compiler.html"> » Desktop C Compilers.</a>
</li>
<li class="li-slide"><a class="a-slide" href="/codingelite.org/PT5II_MCompiler.html"> » Mobile C Compilers.</a></li>
<li class="li-slide"><a class="a-slide" href="/codingelite.org/PT6_arrayDiff.html"><b>Difference between one dimensional and two dimensional
array</b></a></li>
<li class="li-slide"><a class="a-slide" href="/codingelite.org/PT7_charArr.html"><b>What is meant by character array?</b></a></li>
<li class="li-slide"><a class="a-slide" href="/codingelite.org/PT8_TypPointer.html"><b>Types of pointers.</b></a></li>
<li class="li-slide"><a class="a-slide" href="/codingelite.org/PT9_FileFun.html"><b>File handling function in C.</b></a></li>
</ul>
</div>
</aside>
</div>
</div>
</div>
</div>
<footer class="page-footer font-small blue navbar-dark bg-light footer-ptt">
<div class="footer-copyright text-center py-3">
© Copyright 2021. All Right Reserved. | Designed by the <a href="/codingelite.org/about.html">CodingElite team</a>. |
<a class="color-b" href="/codingelite.org/privacyPolicy.html">Privacy policy</a> | <a class="color-b" href="/codingelite.org/contact.html">Contact us</a>
</div>
</footer>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW"
crossorigin="anonymous"></script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js" integrity="sha384-q2kxQ16AaE6UbzuKqyBE9/u/KzioAlnx2maXQHiDX9d4/zp8Ok3f+M7DPm+Ib6IU" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.min.js" integrity="sha384-pQQkAEnwaBkjpqZ8RU1fF1AKtTcHJwFl3pblpTlHXybJjHpMYo79HY3hIi4NKxyj" crossorigin="anonymous"></script>
-->
</body>
</html>