Subscribe to Get Free Material Updates!
Visit my new blog WebData Scraping - Web Scraping Service provider company in India.

Array Tricks and Puzzle in C Programming


Array is the most important concept to learn in any programming language. Most of us started learning array from the C programming language.  The simplest definition of array can be defined as below.
“An array is a collection variable which has common name shared by all its elements”
An array properties are, the array index starting from 0 not 1, array name must follows all the variable naming rules; the arrays are not self describing i.e.   The length of an array cannot be remembered in array.
So, I assume that all of you already aware of array and various operations of an array. Here I give you simple puzzle on C language array which will helps you to learn array more dipper and also understand internal working of an array.
Let us start an array Puzzle,
Consider that  we have declared an integer array in our program with name myarr  with size 5 elements.  We initialized an array myarr with  values 1,2,3,4 and   5 respectively.  To retrieve the array element the various methods can be used as given below.
1.        myarr[index]
2.        index[myarr]
3.        *myarr+ index
4.        index+*myarr.
Now the challenge to an expert programmer is that they have to post their response in comment to describe and give reason why all of above methods works with array? 
Here below I included source code which implements above four methods in array.

#include<stdio.h>
void main()
{

    int myarr[5]={1,2,3,4,5};
  
       printf("%d\n",0[myarr]);
       printf("%d\n",myarr[1]);
       printf("%d\n",*myarr+2);
       printf("%d\n",*myarr+3);
       printf("%d\n",4[myarr]);

 }


The below link provide you  online compiler where you can run your code and get output of program. This online compiler is provided by codepad.org.

The Father of C Language Dennis Ritchie Died




I think youngsters studying in software field might don't know who is Dennis Ritchie when he passed away from this world?

Dennis Ritchie the father of C Programming Language and co-founder of UNIX Operating System was died on Octomber, 12, 12011 (70 year). In last few days we lost two super hero of the Technology world, one is father of C language and other we all know the co-founder of the Apple. 

We all are currently living in era in which whatever the technology we are using the founder of that technology is also exist take example founder of java James Gosling, founder of Google and so on.

But as we all know the universal rule “Each and every thing has its lifetime”, even our global variable has a specified lifetime!

Let’s look backward the history of C programming language developed by Dennis Ritchie.

 
C language was developed by the Dennis Ritchie in 1970s at the Bell Laboratories, at that time C become more popular and considered as a modern and portable programming language.  C programming is procedure oriented programming (POP) language.

C language has its many advantages; it is imperative, structured language, easy to learn, it also allows low level access to memory, it provides rich set of keywords, it has larger set of inbuilt library functions for string manipulation, I/O operations and mathematical calculations. Now a day’s C becomes the primary language to learn for entering into the programming world.

Dennis Ritchie (standing) and Ken Thompson with a PDP-11, circa 1972 (Source: Dennis Ritchie homepage)

Brian Kernighan refines older C language and publish newer version known as “The C Programming Language”. In 1978, Dennis Ritchie and Brian Kernighan publish a book “The C Programming Language”, referred as K&R. The book contains discussion of many critical concepts of C programming language and still it is considered as an best text book to learn C language.

All modern languages such as C++, PHP, Java, C# has its root in C language. If you know the C you can learn C++ (Object Oriented Language) and if you know C++ then you can learn Java or C# very easily.
All BCA, B.Sc (IT), M.Sc(IT), MCA and Engineering students having C programming language in its first semester, so we can understand the importance of C language and its father.

I greatly thanks to Dennis Ritchie for giving such as great language C and due to their effort we are now software programmer and developing application in C++, Java or any other language.

Akash Tablet in Gujarat

Students with Akash Ubislate tablet computer
20 Students of Gujarat was invited in launching of Aakash Ubislate Tablet computer in New Delhi. The "Aakash" or "sky" was launched by by Kapil Sibal, the Human Resources Development Minister. The original cost of the tablet is Rs. 2,250 but Central Government decided to give tablet computer to some selected students in just Rs. 1100. Among all selected students of India, 20 students from Gujarat was selected , they get an Aakash tablet to bring it home, they all are chosen to use the world’s Cheapest tablet computer, after that they will give feedback regarding to tablet. Students will use it and find what problems they facing while using it and what benefits they get while using it. 

Aakash is in its Beta (testing face) version because there may be chances of technical fault in Aakash. When all students get tablet, which will change the life of students. We will have not to carry heavy books daily because we can store all EBooks in little tablet and can open it when our class will going on. Obviously our bag size and weight will be decreased. Now we have to wait to get Aakash!  


Related Posts:

  1. Aakash Ubislate tablet in Rs. 1100
  2. Configuration of an Aakash Ubislate Tablet
  3. Presentation On Akash Tablet Computer
  4. Article on Aakash Ubislate Tablet Computer


IT Quiz Presentations Downloads

I am sharing IT Quiz Presentations in this post. I prepared these presentations when I was working with Computer Club during my BCA (Bachelor of Computer Application).  This presentation is for Technology Quiz Competition and includes following six rounds:
IT Quiz Presentation Round 1 Slide


  1. Round-1 General Knowledge
  2. Round-2 Computer Related
  3. Round-3 Audio visual
  4. Round-4  Programming Skills
  5. Round-5 Good Observation
  6. Round-6 Rapid fire
These presentations will help students who want to organize IT Quiz Competition in their college.  Download Quiz Presentations from the below links.
Please leave comments if you found these presentations helpful! Also don’t forget to share this post.
Download IT Quiz Presentations : Part1  Part 2

Cheat Sheet of AJAX, Java, MySQL, PHP, CSS, Google


Cheat Sheets are very useful for students to learn any new concept easily. Students spend their lots of time behind reading and finding the main points of any topics or programming language. Some of us might face the situation in which we want just silly finction or point but we waste lots of time to find it. This useful cheat sheets help students and developers. This all are handy cheat sheets which helps you very much. I suggest you to take print out of this and use it.

Ajax Cheat Sheets
Ascii Character Cheat Sheet
Google Cheat Sheats
Java Cheat Sheets

Related Posts Plugin for WordPress, Blogger...

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes