Learning Programming C Language

Learning-Programming-C

Learning Programming C Language

Question 1 Have the computer print

HI, HOW OLD ARE YOU?

on one line. The user then enters his or her age immediately after the question mark. The computer then skips two lines and prints on two consecutive lines.

WELCOME (age) LET’S BE FRIENDS!

Question 2

Write a program which uses the format commands with modifiers to print the following output:

Question 3 Write a simple program to evaluate the average speed of a car traveled in meters per second (ms-1).

Question 4 Convert a temperature reading in degrees Fahrenheit to degrees Celsius, using the formula

C = ( 5 / 9 ) x ( F – 32 )

Test the program with the following values: 68, 150, 212, 0, -22, -200 (degree Fahrenheit).

Question 5

What will be output of the following program?

#include<stdio.h> int main(){ int i=5,j; j=++i+++i+++i; printf("%d %d",i,j); return 0; }

Got an error for this ( j=++i+++i+++i;) But this gives an answer j=++i + ++i + ++i;

Question 6

What will be output of the following program?

#include<stdio.h> int main(){ int i=1; i=2+2*i++; printf("%d",i); return 0; }

Question 7

What will be output of the following program?

#include<stdio.h> int main(){ int a=2,b=7,c=10; c=a==b; printf("%d",c); return 0; }

Question 8

What will be output of the following program?

#include<stdio.h> int main(){ int a=0,b=10; if(a=0){ printf("true"); } else{ printf("false"); } return 0; }

Question 9

What will be output of the following program?

#include<stdio.h> int main(){ int a; a=015 + 0x71 +5; printf("%d",a); return 0; }

Question 10

What will be output of the following program?

#include<stdio.h> int main(){ int i=5; int a=++i + ++i + ++i; printf("%d",a); return 0; }

Owner
Tishan is a team leader enthusiast, confident and aim-oriented, and has interpersonal abilities and corporate planning as a core strength.
null
Similar Resources

Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more

Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more

Apache MXNet (incubating) for Deep Learning Apache MXNet is a deep learning framework designed for both efficiency and flexibility. It allows you to m

Dec 31, 2022

An Open Source Machine Learning Framework for Everyone

An Open Source Machine Learning Framework for Everyone

Documentation TensorFlow is an end-to-end open source platform for machine learning. It has a comprehensive, flexible ecosystem of tools, libraries, a

Jan 7, 2023

Microsoft Cognitive Toolkit (CNTK), an open source deep-learning toolkit

CNTK Chat Windows build status Linux build status The Microsoft Cognitive Toolkit (https://cntk.ai) is a unified deep learning toolkit that describes

Dec 23, 2022

header only, dependency-free deep learning framework in C++14

header only, dependency-free deep learning framework in C++14

The project may be abandoned since the maintainer(s) are just looking to move on. In the case anyone is interested in continuing the project, let us k

Dec 31, 2022

Distributed machine learning platform

Veles Distributed platform for rapid Deep learning application development Consists of: Platform - https://github.com/Samsung/veles Znicz Plugin - Neu

Dec 5, 2022

LibDEEP BSD-3-ClauseLibDEEP - Deep learning library. BSD-3-Clause

LibDEEP LibDEEP is a deep learning library developed in C language for the development of artificial intelligence-based techniques. Please visit our W

Dec 8, 2022

An open source machine learning library for performing regression tasks using RVM technique.

Introduction neonrvm is an open source machine learning library for performing regression tasks using RVM technique. It is written in C programming la

May 31, 2022

Caffe: a fast open framework for deep learning.

Caffe Caffe is a deep learning framework made with expression, speed, and modularity in mind. It is developed by Berkeley AI Research (BAIR)/The Berke

Dec 30, 2022

A fast, scalable, high performance Gradient Boosting on Decision Trees library, used for ranking, classification, regression and other machine learning tasks for Python, R, Java, C++. Supports computation on CPU and GPU.

A fast, scalable, high performance Gradient Boosting on Decision Trees library, used for ranking, classification, regression and other machine learning tasks for Python, R, Java, C++. Supports computation on CPU and GPU.

Website | Documentation | Tutorials | Installation | Release Notes CatBoost is a machine learning method based on gradient boosting over decision tree

Dec 31, 2022
Learning Programming C Language

Learning-Programming-C Learning Programming C Language Question 1 Have the computer print HI, HOW OLD ARE YOU? on one line. The user then enters his o

Dec 8, 2022
Deep Scalable Sparse Tensor Network Engine (DSSTNE) is an Amazon developed library for building Deep Learning (DL) machine learning (ML) models

Amazon DSSTNE: Deep Scalable Sparse Tensor Network Engine DSSTNE (pronounced "Destiny") is an open source software library for training and deploying

Dec 30, 2022
A library for creating Artificial Neural Networks, for use in Machine Learning and Deep Learning algorithms.
A library for creating Artificial Neural Networks, for use in Machine Learning and Deep Learning algorithms.

iNeural A library for creating Artificial Neural Networks, for use in Machine Learning and Deep Learning algorithms. What is a Neural Network? Work on

Apr 5, 2022
Deploying Deep Learning Models in C++: BERT Language Model
 Deploying Deep Learning Models in C++: BERT Language Model

This repository show the code to deploy a deep learning model serialized and running in C++ backend.

Nov 14, 2022
Triton - a language and compiler for writing highly efficient custom Deep-Learning primitives.
Triton - a language and compiler for writing highly efficient custom Deep-Learning primitives.

Triton - a language and compiler for writing highly efficient custom Deep-Learning primitives.

Dec 26, 2022
Frog is an integration of memory-based natural language processing (NLP) modules developed for Dutch. All NLP modules are based on Timbl, the Tilburg memory-based learning software package.

Frog - A Tagger-Lemmatizer-Morphological-Analyzer-Dependency-Parser for Dutch Copyright 2006-2020 Ko van der Sloot, Maarten van Gompel, Antal van den

Dec 14, 2022
New ultra super robust and fast programming language, fully supportable by G++ and Clang

Cplusplusplus New ultra super robust and fast programming language, fully supportable by G++ and Clang How to use: Just write #include <C+++.h> in you

Nov 29, 2021
Rune is a programming language developed to test ideas for improving security and efficiency.

ᚣ The Rune Programming Language Safer code for secure enclaves This is not an officially supported Google product. NOTE: Rune is an unfinished languag

Dec 29, 2022
Adorad - Fast, Expressive, & High-Performance Programming Language for those who dare

The Adorad Language Adorad | Documentation | Contributing | Compiler design Key Features of Adorad Simplicity: the language can be learned in less tha

Dec 26, 2022