Reset
Create a Pointer Variable
Create a Pointer Variable
Program Info
Program Code
×

Create a Pointer Variable

we creating an pointer variable then used it.

Footer

×

Create a Pointer Variable

#include <stdio.h>

int main() {
  int myAge = 43;  // An int variable
  int* ptr = &myAge;  // A pointer variable, with the name ptr, that stores the address of myAge

  // Output the value of myAge (43)
  printf("%d\n", myAge);

  // Output the memory address of myAge (0x7ffe5367e044)
  printf("%p\n", &myAge);

  // Output the memory address of myAge with the pointer (0x7ffe5367e044)
  printf("%p\n", ptr);

  return 0;
}

Footer

Function Calling
Function Calling
Program Info
Program Code
×

Function Calling

we doing call a function multiple times.

Footer

×

Function Calling

#include <stdio.h>

// Create a function
void myFunction() {
  printf("I just got executed!\n");
}

int main() {
  myFunction(); // call the function
  myFunction(); // call the function
  myFunction(); // call the function
  return 0;
}

Footer

Print Hello World String
Print Hello World String
Program Info
Program Code
×

Print Hello World String

about c program

Footer

×

Print Hello World String

#include <stdio.h>

int main() {
  printf("Hello World!");
  return 0;
}

Footer

Sum of Two Numbers Using Addition Operator
Sum of Two Numbers Using Addition Operator
Program Info
Program Code
×

Sum of Two Numbers Using Addition Operator

we are doing print sum of two numbers with the help of addition operator.

Footer

×

Sum of Two Numbers Using Addition Operator

#include <stdio.h>

int main() {
  int myNum = 100 + 50;
  printf("%d", myNum);
  return 0;
}

Footer

Sum of variable and Numbers Using Addition Operator
Sum of variable and Numbers Using Addition Operator
Program Info
Program Code
×

Sum of variable and Numbers Using Addition Operator

we are doing print Sum of variable and Numbers with the help of Addition Operator

Footer

×

Sum of variable and Numbers Using Addition Operator

#include <stdio.h>

int main() {
  int sum1 = 100 + 50;        // 150 (100 + 50)
  int sum2 = sum1 + 250;      // 400 (150 + 250)
  int sum3 = sum2 + sum2;     // 800 (400 + 400)
  printf("%d\n", sum1);
  printf("%d\n", sum2);
  printf("%d\n", sum3);
  return 0;
}

Footer

Showing page  1  of  2  (Total  6 records)
12 Next »
×
Name : Krishna Verma    |    Father's Name : Mr. Satish Kumar    |    Email ID : krishnaverma28081997@gmail.com    |    Religion : Hindu    |    Address : Dayampur, kanker khera, Meerut Cantt (250001), UP    |    Date of Birth : 28 August 1997    |    Marital Status : Non-Married    |    Place of Birth : Dayampur Kanker Khera Meerut Cantt.    |    Gender : Male    |    Age : 28    |    Contact : 9520335394    |    Father's Occupation : Sports man    |    Mother's Name : Smt. Kuntesh Devi    |    Mother's Occupation : Homemaker    |    Number of Brothers : 1    |    Number of Sisters : 1    |    Current Residence : Dayampur kanker khera meerut cantt    |    Family Type : Nuclear Family    |    Family Name : verma    |    Height : 5' 6''    |    Weight : 70 kg    |    Complexion : Fair    |    Body Type : Athletic    |    Hair Color : Black    |    Health Status : Good    |    Any Physical Disability : No    |    Highest Qualification : B.Tech (CSE)    |    Master Skill : PHP Laravel    |    Total Projects : 40 +    |    Total Skills : 25 +    |    Languages Known : Hindi and English    |    Website : krishnaportfolio.in    |    Siblings : 3    |    Nationality : Indian    |    Total Experience : 5 Years    |    LinkedIn : https://www.linkedin.com/in/krishna-verma-840b71356/    |    Total Programs : 10000    |    Total Projects : 40    |    Total Skills : 25    |    Total Experience : 5    |    Total DSA Problems : 165    |    Total Served Companies : 2