About 10,800,000 results
Open links in new tab
  1. C Program To Print Your Own Name - GeeksforGeeks

    Sep 10, 2024 · In this article, we will learn how to print your own name using a C program. Examples. Explanation: The program prints “Rahul” to the screen. Explanation: The program prints “Vikas” to the screen. The simplest way to print something is to use the printf () function.

  2. Write a Program to Display your Name in C [Updated 2024] - programminghead

    To write a Program to Print your Name in C, we have the Print/printf() function in C Language. You just have to write your Name inside the Print/printf() function and you will be able to Print or Display your Name.

  3. c - Asking for Name and Displaying input - Stack Overflow

    Sep 12, 2018 · I'm trying to write a simple C code that will prompt user for their name and then display it. #include <stdio.h> int main (void) { char name; printf("Let's do this, please enter your name:"); scanf("%s", &name); printf("Your name is %s", name); return 0; }

  4. C Program: Print your name, date of birth, and mobile number - w3resource

    Mar 18, 2025 · Write a C program to display your full name, date of birth, and mobile number with right-aligned fields using width specifiers. Write a C program to print your personal details where each field is padded with zeros to a fixed length.

  5. C program to read and print your name and address. - Blogger

    C program to read and print your name and address. #include<stdio.h> #include<string.h> int main() { char name[20], address[80]; printf("Enter your name:"); gets (name); printf("Enter your address:"); gets (address); printf("=====\n"); printf("Your name: %s \n",name); printf("Your address: %s\n", address); printf("=====\n");

  6. How to Print Your Own Name in C - Programming Language …

    To print your own name in C, you can use the printf function, which is part of the standard input/output library (stdio.h). Here's an example of how you can do it: int main() { char name[] = "Your Name"; // Replace "Your Name" with your actual name . …

  7. Print your own name n times using for loop in C - R4R

    Print your own name n times using for loop. Say We have print Sudhir Yadav 10 times then we need to write printf("Sudhir Yadav"); ten times. To avoid this have a for loop. Here in this we pass first initialize value from where for loop is started .The second is conditions.

  8. Write a Program to display your name in C language - Codrity

    Mar 20, 2023 · Learn how to display your name in C language using printf() function with this easy-to-follow guide. #include int main()

  9. C program to print string (your name) using different methods.

    How to print string (your name) in c programming language using different methods (ways); here we will print the string by using printf(), puts() and character by character.

  10. Write a program to print your name 5 times on the output screen.

    Mar 13, 2018 · Write a program to print your name 5 times on the output screen. #inclued<conio.h> void main() { int i,n=5; clrscr(); for(i=1;i<=5;i++) { printf(“SHARAD”); } getch(); }

Refresh