-->




Learn programming basics to advanced

1 comment
In today’s world, technology is everywhere and for millions of us it’s a vital part of our lives. With jobs in the field of technology rapidly crushing the competition and ranking amongst some of the highest paying careers (many positions offering experts in the field annual base salaries of £57,000), there’s never been a better time to escape the grind and enter the world of code. 

At Europe’s #1 developer bootcamp, Makers Academy, our job is to help fast-track you into your role as a developer. Makers Academy is a bustling educational academy located in the heart of “Tech City,” dedicated to teaching our students how to become professional developers in just 12 weeks! Through a mixture of workshops, engaging exercises, projects, pair-programming, classroom break-out sessions, daily lectures and stand-ups and end of the week tests, our students quickly become proficient in HTML, Ruby on Rails, CSS3, Javascript & jQuery, Git and Heroku, Software Design and Agile / Lean methodologies, all while having fun and making life-long friendships. 

Makers Academy students are placed in an immersive environment, supported by expert coaches who are always ready to help. We understand that no two people learn in quite the same way, and this real-life interaction allows us to tailor our teaching to best fit every individual student. Our award-winning curriculum was developed with the finest software engineers and once admitted, students will spend about 15-20 hours per week learning the basics in our 4 week Pre-Course. They’ll then enrol in the Main Course where, on average, they will spend up to 70 hours per week honing their craft by engaging in practical exercises in the presence of trained experts. The final week of our program is dedicated to making you job-ready. This is when our dedicated placement team will closely work with you to help you land your dream job as a Junior Developer. Some of the top coding companies who continue to hire Makers Academy graduates include: PivotalLabs, Globaldev, Newbamboo, Mintdigital, Sky, Springer, Workshare, ThoughtWorks, Deloitte Digital, Mergermarket and many others. In many cases, just weeks after graduation Makers graduates are placed in developer positions earning anywhere from £25,000 to £40,000 per year!

Interested in joining the Makers Academy but can’t make it all the way to London to enrol? Then Ronin might be for you. To provide non-local coders with the same engaging, intensive learning experience, Makers Academy launched Ronin - a breakthrough course that leverages everything we’ve learned at Makers Academy to help people all over the world learn how to code all from the comfort of their home. Students will learn through creative, project-driven development and spend 12-16 weeks simulating life as a real developer. Ronin students will leave the program with at least 3 completed projects and the same dedicated assistance of our placement team to find them amazing jobs after graduation.

A career in code can open doors you’ve never imagined. It did for our graduates and they now work in fulfilling, challenging jobs that they love in an ever-growing industry that isn’t going away anytime soon. At Makers Academy, you won’t just learn syntax; you’ll learn how to become a real engineer. So whether you’ve always had a love for code or simply want to escape your boring career and see what all the buzz is about, apply to Makers Academy today and learn how your life can change for the better in just 12 weeks!  

Visit Makers Academy for pricing details and to learn more! 
Read More...

const pointer in c++ with examples

Leave a Comment
What in const in C++?
Const which is short form of constant uses where we don't want to change or modify data. In programming const allow to set limit or control the code as you want. For example we pass some data to a function and want to ensure that function should not have rights to change it then const is used.

Lets discuss a scenario we have an array of size 10 and passes to a function which traverse to whole array and display its value. So to traverse completely, array size should be known in the function and it should not be modified so for good programming array size should be declare as const.


Different scenario with const pointers 

Making non constant pointer to non constant data
Its allows the full modified mode means both pointers and data can be changed or modified to each other by deference.
for example
int *iPtr, i=9;
iPtr=&9;


Making constant pointer to non constant data
int number=10;
const int *ciPtr=&number;

*ciPtr=20; allowed because number is not a const data

int number2=10;
ciPtr=&number2;  ERROR not allowed because ciPtr is constant 


Making constant pointer to constant data
const int number=10;
const *ciPtr=&number;

*ciPtr=20; ERROR ciPtr is pointing to a const value can't be changed

const int number2=10;
const *ciPtr=&number2;  ERROR ciPtr is const can't point to another address

If you have any confiusion about pointer basics read Learn pointer in c++ programming
Read More...

sizeof operator c++ tutorial with examples

Leave a Comment
Sizeof of operator is a unary operator which is used to calculate the size of a data type in bytes during a program compilation process. Pass a data type name and it will return the size in bytes.


List of Basic Data types their sizes and value ranges

Data TypeBytesMin ValueMax Value
char    1   -128127
short    2-3276832767
int    2-3276832767
long    4-21474836482147483647
double    8  10^-30810^308
float    410^-3810^38
unsigned short    2        065535
unsigned    int    2        065535
unsigned    long    4        04294967295
  bool    1True/FalseTrue/False


To understand more deeply let discuss a scenario
we have array of type integer of size 10
int array[10];
we want to calculate its size in two ways.
  1. sizeof operator in main function
  2. sizeof operator in another function in which array will be passed

Let see if the both methods returns same result or different. If different then why?
Cpp code example

#include<iostream>
using namespace std;

void calculate_size(int *);
int main()
{
    int array[10];

    cout<<"Size of array in bytes->
          main function "<<sizeof(array);
    cout<<"\n\n\n";

    calculate_size(array);

    return 0;

}

void calculate_size(int *iPtr)
{
   cout<<"Size of array in bytes-> 
     another function: "<<sizeof(iPtr)<<endl;
}


Example input/ouput of c++ program



As we can see both results are different buy why?

Lets explain it:
We know Integer takes 4 bytes in memory
we have array[10]->  10X4= 40 bytes in memory
so in main function body compiler knows that array is declared and it's size is -> sizeof(array)= 40 correct

In second result we have function with integer pointer argument. Array name is a constant pointer it will take 4 bytes that is why the result is different because we passed the array name(constant pointer) in function and within the scope of this function we have a single pointer of type integer.
address of array stored in iPtr->  iPtr=&array;

For pointers read here: Learn pointers in C++ Tutorial 
Sizeof Operator Example:
calculate number of elements in array using sizeof operator operations
We can also calculate number of elements in an array simple using two sizeof operators.
Lets discuss a Cpp code 


#include<iostream>
using namespace std;

int main()
{
    double array[10];
    int elements=sizeof(array)/sizeof(array[0]);

    cout<<"Total Elements "<<elements;
    cout<<"\n\n\n";

    return 0;

}


we have double array[10];
sizeof(array)=40
sizeof(array[0])=4
No.of Elements =sizeof(array)/sizeof(array[0])= 10


Note:
Size of data type varies from system to system specifications for 32-bit and 64 bit sizes may differ it is recommend to use sizeof operator for portability purpose.

Read more: Cpp Programming Tutorials

Read More...

c++ pointer simple example pass by reference

Leave a Comment
Write a program which passes a reference to a function and function has a pointer as argument. Keep the return type void and display result in main body. Apply any maths operation find square of a number
Use any c++ compiler: Codeblocks recommended.

If you have any confusion read this difference b/w pass by value and pass by reference 


#include<iostream>
using namespace std;

void pass_by_reference(int *);
int main()
{
    int number;

    cout<<"Enter Number to Calculate Square: ";cin>>number;
    cout<<"\n\n\n";

    pass_by_reference(&number);
    cout<<"\t\tResult: "<<number<<endl;

    return 0;

}

void pass_by_reference(int *iPtr)
{
    *iPtr=*iPtr * *iPtr;
}



Sample input Output of program
pointer argument example pass by reference


In the above example there is no need to return from function because changes will be made permanently on reference of number.
Find more examples here: C++ Simple Examples 

Read More...