This document outlines 8 C programming questions that cover various memory concepts, data input/output, and primitive data types. The questions include: 1) Displaying name and school on separate lines, 2) Printing a pyramid of asterisks, 3) Inputting and displaying different data types, 4) Adding two integers, 5) Averaging two decimals, 6) Displaying age from name and birth year, 7) Swapping and displaying two numbers, and 8) Analyzing output from various printf format specifiers.
This document outlines 8 C programming questions that cover various memory concepts, data input/output, and primitive data types. The questions include: 1) Displaying name and school on separate lines, 2) Printing a pyramid of asterisks, 3) Inputting and displaying different data types, 4) Adding two integers, 5) Averaging two decimals, 6) Displaying age from name and birth year, 7) Swapping and displaying two numbers, and 8) Analyzing output from various printf format specifiers.
This document outlines 8 C programming questions that cover various memory concepts, data input/output, and primitive data types. The questions include: 1) Displaying name and school on separate lines, 2) Printing a pyramid of asterisks, 3) Inputting and displaying different data types, 4) Adding two integers, 5) Averaging two decimals, 6) Displaying age from name and birth year, 7) Swapping and displaying two numbers, and 8) Analyzing output from various printf format specifiers.
Areas covered Memory concepts, Data Input & output ,primitive data types
Write a C program for each of the following question
1. Display your name and school name in two separate lines
2. Display the following output using printf() statements * ** *** **** ***** 3. Input values for int,float,double and char data types and display the value of each of the variable. 4. Input two integers and display the total 5. Input two numbers with decimals and display the average with decimals 6. Input a student name, birth year and display student name with age. 7. Input two numbers, swap the values and display the output. ( Before swap and after swap) 8. Execute the following code and analyze the output. #include<stdio.h> main() { printf("The color: %s\n", "blue"); printf("First number: %d\n", 12345); printf("Second number: %04d\n", 25); printf("Third number: %i\n", 1234); printf("Float number: %3.2f\n", 3.14159); printf("Hexadecimal: %x\n", 255); printf("Octal: %o\n", 255); printf("Unsigned value: %u\n", 150); printf("Just print the percentage sign %%\n", 10); }
Learn Python Programming for Beginners: Best Step-by-Step Guide for Coding with Python, Great for Kids and Adults. Includes Practical Exercises on Data Analysis, Machine Learning and More.
Microsoft 365 Guide to Success: 10 Books in 1 | Kick-start Your Career Learning the Key Information to Master Your Microsoft Office Files to Optimize Your Tasks & Surprise Your Colleagues | Access, Excel, OneDrive, Outlook, PowerPoint, Word, Teams, etc.
Microsoft PowerPoint Guide for Success: Learn in a Guided Way to Create, Edit & Format Your Presentations Documents to Visual Explain Your Projects & Surprise Your Bosses And Colleagues | Big Four Consulting Firms Method
Microsoft Excel Guide for Success: Transform Your Work with Microsoft Excel, Unleash Formulas, Functions, and Charts to Optimize Tasks and Surpass Expectations [II EDITION]
CODING FOR ABSOLUTE BEGINNERS: How to Keep Your Data Safe from Hackers by Mastering the Basic Functions of Python, Java, and C++ (2022 Guide for Newbies)
Modern Tkinter for Busy Python Developers: Quickly Learn to Create Great Looking User Interfaces for Windows, Mac and Linux Using Python's Standard GUI Toolkit