Skip to main content

Pointer and arrays in c programming

 You have probably heard this key word pointer and array if you have been writing code for C programming or might have even heard it somewhere else from other programming languages like java and C++ and javascript but what exactly are they ? 

A pointer is a variable which contains memory address


Types and memory

Every time you declare a variable, the computer will reserve memory for this variable. The memory reserved will then store the value of the variable.
Depending on the type of the variable, the computer will reserve more or less memory. The size of each type is generally defined in bytes (1 byte = 8 bits, each bit being 0 or 1). The sizes of the types also depend on the computer you are using. Here are the sizes of the most common types on most 64-bit Linux machines:

  • char -> 1 byte
  • int -> 4 bytes
  • float -> 4 bytes

To determine the size of those types on your computer, you can use the sizeof operator.

Comments

Popular posts from this blog

How to create a fiverr account to start selling your skills as a freelencer

  Here are the all hidden secrets that a new freelancer needs to know before you create Fiverr account . This is going to become your 1st step of gain and withdraw money from Fiverr . Fiverr is a freelancing platform that offers every person to come to Fiverr and start selling their skills. Every day thousands of freelancers come to Fiverr and create their accounts on Fiverr. But only a few of them can able to appear on Fiverr search results. And even most of them don’t appear a single time to any person that is visiting the Fiverr website. This only because of a lack of knowledge and no proper fiverr niche that is the 1st and most important thing for every freelancer. They don’t know how to create Fiverr account like professionals and even don’t know how to optimize their accounts for Fiverr algorithms. 1. Fiverr Account Creation: First, go to the fiverr.com website from your pc or laptop. Now take a look at the menus on the top right corner. Here you will see a Join button fro...

What is javascript used for?

 Javascript is the world's most popular  programming language that is used to program the behavior of  web pages. It gives web pages functionality that HTML and CSS cannot.  It was first created by Brendan Eich at Netscape in 1995. It's name was initially Mocha during development before being named javascript following the popularity of Java.  Javascript is one of the three programming languages that a web developer must know. It can modify page content and page outlook. It is easy to learn javascript. Learn front-end development for free ! 

GB privacy policy

 Privacy Policy  This Privacy Policy applies to all apps (Android & IOS) under the Maru Developers. We has created this Policy to explain our privacy practices so you can understand what information about you is collected, used and disclosed. We collect information from you in order to provide corresponding service and better user experience. With your consent of this Privacy Policy, your usage, statistics, input while using our apps would be collected. INFORMATION WE COLLECT Generally. We may collect personal information from our users in order to provide you with a personalized, useful and efficient experience. The categories of information we collect can include: Social network's personal information and device's gallery pictures. Non-personal identification. We may collect non-personal identification information about installed applications, application usage information and device information. The information you give us, for example, when you give us your opinions to...