Home

  • How to start “PROGRAMMING”!

    November 9, 2019 by

    Many people often go through these questions “How to start programming?”“Can I do programming?”“Where to start programming?” Computer programming is the process of designing and building an executable computer program for accomplishing a specific computing task – Wikipedia Programming is not a complicated task and can be mastered if you are determinate enough. It also requires lots of attention and hard work. But this point should be noticed that Programming can’t be mastered completely. Some might guide you up-to some extent but there is always something left to learn. Ultimately you are the one who should take an initiation in order to learn it… Read more Continue reading How to start “PROGRAMMING”!

  • OPTUM Interview Experience , NIT Delhi for Summer Internship 2020

    September 19, 2019 by

    In total there are 3 rounds. 1)Online Coding and Aptitude round 2)Technical Interview round 3)HR round Online Coding and Aptitude round                 This round consisted of Aptitude test of duration 30 minutes and the total number of questions was 30 in which 20 of them were qualitative and 10 of them were quantitative. The level of difficulty is normal but some questions are bit lengthy and consume more time. So, try to skip those questions. The aptitude test was followed by Coding test of duration 30 minutes and total number of questions was 2. Both of the questions are easy… Read more Continue reading OPTUM Interview Experience , NIT Delhi for Summer Internship 2020

  • Introduction

    August 13, 2019 by

    The main objective of this Programming Monks blog is to help the beginners in understanding the basics of programming. Why this blog? As we Monks are engineering students, we can closely relate to the difficulties that beginners will face while writing a code and learning a programming concept. We are inspired by the difficulties we have faced to help beginners in learning programming. “rOme wasn’t built in a day.” The two important steps in programming are learning a programming concept and implementing it. We need patience and discipline to become a good programmer. We’ll discuss more about it in our… Read more Continue reading Introduction

  • POINTERS

    August 27, 2019 by

    Pointers: A pointer is a variable which stores the address of another variable which can be used to access data without referring to the data identifier directly. Pointers are identifiers for addresses for addresses whereas data variable are identifiers for the data. Pointer variable: A pointer variable s a variable that holds the address of another variable Program: Output: Explanation: In this program initially a variable of data type integer is declared i.e. n with its content as 0. Later the content of the variable n Is displayed i.e. 0 The address of the variable n is referred by using… Read more Continue reading POINTERS

  • RECURSION

    August 23, 2019 by

    Recursion: Recursion is a repetitive process in which a function calls itself. –In recursion it calls itself directly or indirectly to solve a smaller version of its task until a final call is called which doesn’t require any other self call. Source code: #include <stdio.h> int recursivefactorial(int n); int main(){     int n;     printf(“\n enter the value to find the factorial”);     scanf(“%d”,&n);     int fact=recursivefactorial(n);     if(fact!=0)     printf(“\n the result is %d\n”,fact); } int recursivefactorial(int x){   if(x==0 || x==1)       return 1;   else if(x<0){         printf(“\n negative numbers not allowed”);         return 0;   }… Read more Continue reading RECURSION

  • FUNCTIONS

    August 17, 2019 by

    A computer cannot perform all the tasks by itself.So it utilises the entities named functions.But what is a function?According to Wikipedia a function means to work or operate in a particular way.Similarly a function in C also performs a desired task according to the user requirements. Definition:A function is a self contained block of code that performs a particular task of acting on data and may return a value. Function prototype:Datatype function_name(datatype variable-1,datatype variable-2,_ _ _ _){            Local declarations;            Executable statements;             Return statement;}The part within the curly braces is called the body of the program and the initial line is… Read more Continue reading FUNCTIONS

  • LOOP STATEMENTS

    August 17, 2019 by

    Loop statements are used when we want to execute some line of code repeatedly. For loops are used when we know the number of times we run the loop. while loops are used when we are not sure about the number of times we run the loop. Syntax:FOR loop:for(counter_variable initialization;for_condition; counter_variable increment/decrement){        statements;} In For loop parenthesis we have three parts. First is for initialisation, Second is for condition and third is to increment or decrement  the counter variable.First the variable is initialised. Then the condition is checked. If the condition evaluates to be true then compiler will execute… Read more Continue reading LOOP STATEMENTS

  • SWITCH CASE

    August 17, 2019 by

    Switch case changes the direction of flow of control with respect to the input. The condition in switch statement is compared with case statements in the switch block.when the switch condition and case condition both are equal, the statements in that specific case block are executed. Using default statement is optional but it is preferred to handle errors when switch condition does not matches with any of the case conditions. Therefore, the statements in the default block executes only if the switch condition does not matches with any of the case conditions.Using break statement is optional. Note: If there is… Read more Continue reading SWITCH CASE

  • UNDERSTANDING CONDITIONAL STATEMENTS

    August 17, 2019 by

    In order to understand conditional statements, first we need to understand conditions.In C, conditions are logical statements whose final value will be either true(it is generally represented as integer 1 or any non-zero integer ) or false(it is represented as 0)In logical statements, we need to use logical operators.Some of the logical operators are:·        == (if L.H.S and R.H.S are equal then this operator returns true(1) else returns false(0))Example: (2+1)==3 returns true and 2==3 returns false·        < (if L.H.S is less than R.H.S then this operator returns true(1) else returns false(0))Example: 2<3 returns true and 5<4 returns false·        > (if L.H.S greater than… Read more Continue reading UNDERSTANDING CONDITIONAL STATEMENTS

  • UNDERSTANDING CONSTANTS,VARIABLES AND DATATYPES

    August 17, 2019 by

    By the name itself we can understand that constants are those whose value doesn’t change and variable are those whose value can be changed.The Data-type of a value or variable is an attribute that tells what kind of data that value or variable can have. Some of the data-types are int (for integer values like -56, 0, 89 etc)float (for floating values like 2.36, 5.298 etc)char (for characters like ‘A’, ’b’, ’%’ , ‘4’, compiler will treat ‘4’ as a character as it is enclosed within apostrophe. So 4 is an integer and ‘4’ is a character). A variable having integer data-type… Read more Continue reading UNDERSTANDING CONSTANTS,VARIABLES AND DATATYPES

View all posts

Programming Monks Telegram Channel : https://t.me/Programming_Monk

Follow Our Blog

Get new content delivered directly to your inbox.

Leave a Reply