Skip to main content

Posts

Does Technical degree and Certificates matter for IT companies??

 This Question raises in my mind every time before my interview. And why so? hmm😐, this is very interesting fact  as I do not have any technical degree like B.TECH, B.E, MCA. As I have PG diploma in computers and 6 month embedded training certificate only. Each and every HR calls me and ask like what is your education qualification, "Harpreet can you tell me what is your Degree"?? Very first time I was hesitating to tell as I have done Bachelor's of Arts in Graduation. HR listened and tell me their company can not hire me as per their opinion only B.TECH students can crack their technical round. But My previous company's HR given me a chance to prove myself I cracked their technical round.  They didn't judge me by my education qualification. I got golden opportunity to prove wrong these HRs who told me to take admission for technical degree. Yes, I proved them wrong by done wonderful work with previous firm. I have enough confidence to give competition. This thin
Recent posts

Why I'm not able to build logic(coding)?

This question always comes to me why I'm not good in logic building? I approached people who are enough good in coding and logic building. After that I find out some key points to enhance your logic building skill:  Here are some points:  1. Daily practice (solve problems as much as you can).  2. Keep Patience (Do not give up).  3. Theoretical  knowledge also important (Do not jump directly to coding,get some overview of concept).  4. Before practice on your system(laptop) try to solve problem on notebook.  5. Dry run your code (execution of program on your notebook instruction by instruction).  6. Go through basic to advance always. 7. Do not stick with single question or problem. 8. Work on Data structures as well algorithms. These key points will work to enhance your coding skill. I keep doing all this and it works for me. I experienced and also heard about myself from people i have to learn things in deep and I am weak to build logic, So whoever  want to increase logic ability

Polymorphism: Run-time

 Polymorphism has two different types: Compile-Time polymorphism Run-Time polymorphism  Let's start with an instance of running code:  Run-time polymorphism takes place using Function-overriding. When derived class has definition for one of the member functions of base class. That function will be called overridden. In the above instance we can see Add() function which is a virtual function  overriden  function. I declared base class pointer (holding derived class's object address in it)in main function so this is enough to understand run-time polymorphism.

Polymorphism :

 C++ have oops concepts. In these concepts c++ have polymorphism principle. Polymorphism means Poly = Many, Morphism = Forms. Means ability of a message to be displayed in different forms/more than one form. Polymorphism have two types:   👉  Compile Time Polymorphism   👉  Run Time Polymorphism Compile Time polymorphism have different two types: 1. Function overloading, 2.operator overloading. Let's discuss about Function overloading.  In Function overloading type polymorphism there are multiple functions with same name but different arguments then these functions can be called overloaded. Functions can be overloaded through change in number of arguments and change in type of arguments. Let's take an example for better understanding:  In above example we have func() named two functions with difference of number of arguments and type of arguments. Here we said to be func() is overloaded function.

cin or cout objects in c++

C++ : As we know C++ is object oriented language. C++ used  objects and classes. Objects Cin and Cout  are used for standard input/output. As we we know in C language we used functions for input/output. But C++ used objects. Here Cin and Cout both are object to iostream class. which are used for read or write operations. Here we have an example for these objects:   In this example cout will print a message on console and cin will take input. Cout print output on screen. cout used instertion operator "<<" and cin used extraction operator ">>".

Printf() in if-else statement

C programming language have some control statements e.g. if statement,switch statement,Conditional operator statement ,goto statement and loop statement. let discuss about if statement. In if statement when control jump to the if statement it will check whether condition is true or not, if condition is true then the code within if statement body will be executed if condition is false then control will jump out of the statement block and outer part of statement of the code will run. So if we talk about printf() in if condition then what will happen?? let see this example: Above example will print 02. Because printf() returns number of bytes successfully written so here in if condition printf() print 0 and condition is true so control jump to i=2 initialization statement and second printf() statement will print 02. So output will be 02.This is how it does work.

Unions :

Union is a special data type available in c. That allows to store different data types in the same memory location. We can define an union with number of members. But only one member can contain a value at any given time. And important thing  about union  is we can see with this example that union members share same memory location: In this example it will print same value as integer it will print 'i' 's ascii value 105 and character value will be 'i' in char value. In same example if initialize at same time both it will throw warning. After run this program you will get first value 12 but another value it will not print.