C PROGRAMMING PROGRAM • BASICS & INPUT/OUTPUT

Print Personal Details

Learn how to print personal details using a clear C program.

Beginnerprintf()Escape sequencesProgram structure

PROBLEM UNDERSTANDING

Input and expected output

Sample input
No input required
Sample output
Name: Bhavya
Course: C Programming
Goal: Learn by practising

COMPLETE C PROGRAM

Complete C implementation

print-personal-details.c
Open in compiler
#include <stdio.h>

int main(void)
{
    printf("Name: Bhavya\n");
    printf("Course: C Programming\n");
    printf("Goal: Learn by practising\n");
    return 0;
}

GUIDED CODE TOUR • NOT LIVE EXECUTION

Study the program line by line

Use the real compiler button above to run and debug with different inputs.

CURRENT STEP

Select Start to walk through the important lines.

SELECTED LINE

No line selected

EXPECTED OUTPUT FOR THE SAMPLE

Name: Bhavya
Course: C Programming
Goal: Learn by practising
0%Step 0 of 0

PROGRAM EXPLANATION

Algorithm and explanation

  1. Read the required input values.
  2. Use separate printf() calls and newline escape sequences to format multiple lines of output.
  3. Display the computed result.

Use separate printf() calls and newline escape sequences to format multiple lines of output.

EFFICIENCY

Time and space complexity

Time complexity

O(1)

Auxiliary space

O(1)

DEBUGGING CHECKLIST

Common mistakes

Check this

Use the correct format specifier for every variable.

Check this

Initialize variables before using their values.

Check this

Check braces, semicolons and input order carefully.

Try it yourself

Practice: Run the program with the sample input, predict its output, and then test one boundary case of your own.