-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog1.html
484 lines (356 loc) · 24.9 KB
/
blog1.html
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta Tag -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- SEO -->
<meta name="description" content="MY WEBSITE">
<meta name="author" content="GYAN PRAKASH RAJ">
<meta name="url" content="https://www.gyanrobogx.in">
<meta name="copyright" content="RoBOGx">
<meta name="robots" content="index,follow">
<title>ROboGxGyan</title>
<!-- Favicon -->
<link rel="shortcut icon" href="images/favicon/favicon.ico">
<link rel="apple-touch-icon" sizes="144x144" type="image/x-icon" href="images/favicon/apple-touch-icon.png">
<!-- All CSS Plugins -->
<link rel="stylesheet" type="text/css" href="css/plugin.css">
<!-- Main CSS Stylesheet -->
<link rel="stylesheet" type="text/css" href="css/style.css">
<!-- Google Web Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:400,300,500,600,700">
<!-- Syntax Highlighter -->
<link rel="stylesheet" type="text/css" href="css/syntax/shCore.css">
<link rel="stylesheet" type="text/css" href="css/syntax/shThemeDefault.css">
<!-- HTML5 shiv and Respond.js support IE8 or Older for HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Preloader Start -->
<div class="preloader">
<div class="rounder"></div>
</div>
<!-- Preloader End -->
<div id="main">
<div class="container">
<div class="row">
<!-- About Me (Left Sidebar) Start -->
<div class="col-md-3">
<div class="about-fixed">
<div class="my-pic">
<img src="images/pic/my-pic.png" alt="">
<a href="javascript:void(0)" class="collapsed" data-target="#menu" data-toggle="collapse"><i class="icon-menu menu"></i></a>
<div id="menu" class="collapse">
<ul class="menu-link">
<li><a href="about.html">About</a></li>
<li><a href="work.html">Work</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
</div>
<div class="my-detail">
<div class="white-spacing">
<h1>GYAN PRAKASH</h1>
<span>Web Developer</span>
</div>
<ul class="social-icon">
<li><a href="https://twitter.com/Kali_root_zBUGS?s=09" target="_blank" class="twitter"><i class="fa fa-twitter"></i></a></li>
<li><a href="https://www.linkedin.com/in/gyan-p-a20539202/" target="_blank" class="linkedin"><i class="fa fa-linkedin"></i></a></li>
<li><a href="./images/temp/ttt.jpg" target="_blank" class="github"><i class="fa fa-github"></i></a></li>
<li><a href="https://api.whatsapp.com/send?phone=+917050945881&text=LET'S_FIX_BUG_ON_TEA_SOMEDAY_YOU_AND_ME💛" target="_blank" class="whatsApp"><i class="fa fa-whatsapp"></i></a></li>
</ul>
</div>
</div>
</div>
<!-- About Me (Left Sidebar) End -->
<!-- Blog Post (Right Sidebar) Start -->
<div class="col-md-9">
<div class="col-md-12 page-body">
<div class="row">
<div class="sub-title">
<a href="index.html" title="Go to Home Page"><h2>Back Home</h2></a>
<a href="#comment" class="smoth-scroll"><i class="icon-bubbles"></i></a>
</div>
<div class="col-md-12 content-page">
<div class="col-md-12 blog-post">
<!-- Post Headline Start -->
<div class="post-title">
<h1>THE BIG QUESTION - WHY "C"?</h1>
</div>
<!-- Post Headline End -->
<!-- Post Detail Start -->
<div class="post-info">
<span>OCTOBER 2, 2021 / by <a href="#" target="_blank">GYAN PRAKASH</a></span>
</div>
<!-- Post Detail End -->
</TR>
</TABLE><p>When I started getting my interest in computers and their anatomy I felt like something magic was happening there, and then so many things affected me and I bend towards this field. Honestly, saying when I decided to learn Programming, the biggest question I ever faced was “From which language should I start?" So here in this blog i will express my ideas and experience about my first programming language i.e C.To a beginner programmer why C is language to choose from the mighty pool of 100 ’s of languages.<br />
<br />
This was the question I asked myself when I started writing my
first program. I tried many languages but finally I came to C, the most
beautiful and charming language of all. I was literally blown away by
the simplicity and elegance of C. <br />
<br />
Though C is simple it is one of the most powerful languages ever created.<br />
<br />
In this dynamic IT world new language come every day and then get obsolete,
so there must be something in the C which has remained there for 3
decades and more, and even today there is hardly any language which can
match its strength.<br />
<br />
90% of the starting programmers say that C has been superseded by other languages such as C++, Java,
and C # and so on, so why learn C. I don’t know why they think so but I
know one thing that they will never excel the other 10% programmers who
differs from this opinion. <br />
<br />
C was the programming language developed at AT & T’s Bell Laboratories of USA in 1972. It was written by a man name Dennis Ritchie.<br />
<br />
Now let us begin to analyze reason why C should be your first programming language.<br />
<br />
1. I believe nobody can learn C++ or Java directly. To master these
languages you need to have a strong concept of programming element such
as polymorphism, classes, inheritance etc. Simple question is how you
can learn such complicated concepts when you don’t even know about the
basic elements such as block functions. C is a language which begins
from scratch and it has foundational concepts on which today concepts
stand on.<br />
<br />
2. It is language on which C++ is based on, hence C# also derive its
origin from the C. Java is also a distant cousin of C and share the
same programming concept and syntax of C. These are the most dominant
languages in the world and all are based on C. To rock the world
through them you must get rocking with C.<br />
<br />
3. C++, Java, and C # make use of OOP (Object Oriented Programming).
Not all programs need it even though it is a powerful tool. Such
programs are still written in C.<br />
<br />
4.When ever it comes to performance (speed of execution),<b><a href="javascript:void(0)" data-toggle="popover" data-placement="top" data-content="You can write any text here">C</a></b> unbeatable.<br />
<br />
5. Major parts of the Windows, Unix and Linux are still written in C.
So if you want program these OS or create your own you need to know C.<br />
<br />
6. Device drivers of new devices are always written in C. The reason is that C provides you access to the basic elements of the computer. It gives you direct access to memory of your CPU through pointers. It allows you to manipulate and play with bits and bytes.<br />
<br />
7. Mobiles, Palmtops, PDA’s etc are gaining popularity every second.
Also appliances such as T.V., Refrigerators, and Microwaves etc. are
becoming an integral part of our daily needs. You may not know but they
have a CPU with them which do need programming and the software’s
written for them are known as embedded system programs. These programs
have to be fast in execution but also have a very little memory. No
question why C is ideally suited for embedded system programming.<br />
<br />
8. You must have played games on your PC. Even today these astounding
3D games use C as their core. Why? The simple reason who will play the
game when it takes a lot of time fire a bullet after you have given
command from the console. The reply to the command should be damn
prompt and fast. Reply in 1 Nano second is an outstanding game; Reply
in 10 Nano seconds is crap. Even today there is no match for C.<br />
<br />
9. C is a middle level language. There are three types of language –
High Level, Middle Level & Low Level. High level languages are user
oriented, giving faster development of programs, example is BASIC. Low
level languages are machine oriented; they provide faster execution of
programs. C is a middle level language because it combines the best
part of high level language with low level language. It is both user
and machine oriented and provides infinite possibilities.<br />
<br />
10. Last but not least it is a block structured language. The first
symbol of a modern language is that it is block structured. Each code
exists in separate block and is not known to code in other block
providing easy means of programming and minimizing the possibilities of
undesirable side effects. C is designed from the base to top to be a
block structured language. Many older languages, most popular being
BASIC tried to introduce this concept but their short coming can never
fulfilled as they were never built along these line. <br />
<br /><br />
<br />
</td>
</tr>
<!-- Post Coding (SyntaxHighlighter) Start -->
<div class="margin-top-40 margin-bottom-40">
<pre class="brush: js">
/* Algorithm of Merge sort in C */
$(/* C program for Merge Sort */
#include<stdlib.h>
#include<stdio.h>
// Merges two subarrays of arr[].
// First subarray is arr[l..m]
// Second subarray is arr[m+1..r]
void merge(int arr[], int l, int m, int r)
{
int i, j, k;
int n1 = m - l + 1;
int n2 = r - m;
/* create temp arrays */
int L[n1], R[n2];
/* Copy data to temp arrays L[] and R[] */
for (i = 0; i < n1; i++)
L[i] = arr[l + i];
for (j = 0; j < n2; j++)
R[j] = arr[m + 1+ j];
/* Merge the temp arrays back into arr[l..r]*/
i = 0; // Initial index of first subarray
j = 0; // Initial index of second subarray
k = l; // Initial index of merged subarray
while (i < n1 && j < n2)
{
if (L[i] <= R[j])
{
arr[k] = L[i];
i++;
}
else
{
arr[k] = R[j];
j++;
}
k++;
}
/* Copy the remaining elements of L[], if there
are any */
while (i < n1)
{
arr[k] = L[i];
i++;
k++;
}
/* Copy the remaining elements of R[], if there
are any */
while (j < n2)
{
arr[k] = R[j];
j++;
k++;
}
}
/* l is for left index and r is right index of the
sub-array of arr to be sorted */
void mergeSort(int arr[], int l, int r)
{
if (l < r)
{
// Same as (l+r)/2, but avoids overflow for
// large l and h
int m = l+(r-l)/2;
// Sort first and second halves
mergeSort(arr, l, m);
mergeSort(arr, m+1, r);
merge(arr, l, m, r);
}
}
/* UTILITY FUNCTIONS */
/* Function to print an array */
void printArray(int A[], int size)
{
int i;
for (i=0; i < size; i++)
printf("%d ", A[i]);
printf("\n");
}
/* Driver program to test above functions */
int main()
{
int arr[] = {12, 11, 13, 5, 6, 7};
int arr_size = sizeof(arr)/sizeof(arr[0]);
printf("Given array is \n");
printArray(arr, arr_size);
mergeSort(arr, 0, arr_size - 1);
printf("\nSorted array is \n");
printArray(arr, arr_size);
return 0;
};
</div>
<!-- Post Author Bio Box Start -->
<div class="about-author margin-top-70 margin-bottom-50">
<div class="picture">
<img src="images/blog/passport-new.png" class="img-responsive" alt="">
</div>
<div class="c-padding">
<h3>Article By <a href="#" target="_blank" data-toggle="tooltip" data-placement="top" title="Visit gyan's Website">GYAN PRAKASH</a></h3>
<p>Currently working with Shell script, MERN stack, React, Meteor, Typescript, Express Node, and Angular.
Having experience with;
- Javascript/Ajax,jQuery
-NodeJs
-Firebase
-Python
Extremely motivated to constantly develop my skills and grow professionally. I am confident in my ability to come up with interesting ideas for unforgettable marketing campaigns.</p>
</div>
</div>
<!-- Post Author Bio Box End -->
<!-- You May Also Like Start -->
<div class="you-may-also-like margin-top-50 margin-bottom-50">
<h3>You may also like</h3>
<div class="row">
<div class="col-md-4 col-sm-6 col-xs-12">
<a href="mythe01.html"><p>How privacy has now become just a myth in tech world?</p></a>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<a href="#"><p>COMING SOON</p></a>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<a href="#"><p>COMING SOON</p></a>
</div>
</div>
</div>
<!-- You May Also Like End -->
<!-- Post Comment (Disqus) Start -->
<!-- Footer Start -->
<div class="col-md-12 page-body margin-top-50 footer">
<footer>
<ul class="menu-link">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="work.html">Work</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
<p>© Copyright 2016 All rights reserved</p>
<!-- MY Credit Start -->
<div class="Mt-credit">Design By <a href="https://www.linkedin.com/in/gyan-p-a20539202/" target="_blank">GYAN PRAKASH</a></div>
<!-- UiPasta Credit End -->
</footer>
</div>
<!-- Footer End -->
</div>
<!-- Blog Post (Right Sidebar) End -->
</div>
</div>
</div>
<!-- Endpage Box (Popup When Scroll Down) Start -->
<div id="scroll-down-popup" class="endpage-box">
<h4>Read Also</h4>
<a href="mythe01.html">How privacy has now become just a myth in tech world?</a>
</div>
<!-- Endpage Box (Popup When Scroll Down) End -->
<!-- Back to Top Start -->
<a href="#" class="scroll-to-top"><i class="fa fa-long-arrow-up"></i></a>
<!-- Back to Top End -->
<!-- All Javascript Plugins -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/plugin.js"></script>
<!-- Main Javascript File -->
<script type="text/javascript" src="js/scripts.js"></script>
<!-- Syntax Highlighter Javascript File -->
<script type="text/javascript" src="js/syntax/shCore.js"></script>
<script type="text/javascript" src="js/syntax/shBrushCss.js"></script>
<script type="text/javascript" src="js/syntax/shBrushJScript.js"></script>
<script type="text/javascript" src="js/syntax/shBrushPerl.js"></script>
<script type="text/javascript" src="js/syntax/shBrushPhp.js"></script>
<script type="text/javascript" src="js/syntax/shBrushPlain.js"></script>
<script type="text/javascript" src="js/syntax/shBrushPython.js"></script>
<script type="text/javascript" src="js/syntax/shBrushRuby.js"></script>
<script type="text/javascript" src="js/syntax/shBrushSql.js"></script>
<script type="text/javascript" src="js/syntax/shBrushVb.js"></script>
<script type="text/javascript" src="js/syntax/shBrushXml.js"></script>
<!-- Syntax Highlighter Call Function -->
<script type="text/javascript">
SyntaxHighlighter.config.clipboardSwf = 'js/syntax/clipboard.swf';
SyntaxHighlighter.all();
</script>
</body>
</html>