• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 3 pages
Exam (elaborations)

Declarations and Initializations

Document preview thumbnail
Preview 1 out of 3 pages

C Programming :: Declarations and Initializations @ : Home C Programming Declarations and Initializations General Questions 1. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ? A. rem = 3.14 % 2.1; B. rem = modf(3.14, 2.1); C. rem = fmod(3.14, 2.1); D.Remainder cannot be obtain in floating point division. Answer & Explanation Answer: Option C Explanation: fmod(x,y) Calculates x modulo y, the remainder of x/y. This function is the same as the modulus operator. But fmod() performs floating point divisions. Example: #include stdio.h #include math.h int main { printf "fmod of . /. is %lfn", fmod . ,. ;

Content preview

IIBM: 1 Year Online PG Program ­ Get Details! Like Sh


Arithmetic Aptitude Data Interpretation
Logical Reasoning Verbal Reasoning Non Verbal Reasoning
General Knowledge
Sudoku Number puzzles Missing letters puzzles Logical puzzles Playing cards puzzles Clock puzzles
C Programming C++ Programming C# Programming Java Programming
Microbiology Biochemistry
Biotechnology Biochemical
Engineering
Electronics and
Communication
Engineering Civil
Engineering Mechanical
Engineering Chemical
Engineering Networking
Database Questions
Computer Science Basic
Electronics Digital
Electronics Electronic
Devices Circuit Simulation
Electrical Enigneering
Engineering Mechanics
Technical Drawing
Placement Papers Group Disucssion HR Interview Technical Interview Body Language
Aptitude Test Verbal Ability Test Verbal Reasoning Test Logical Reasoning Test C Programming Test Java P
Test General Knowledge Test
Data Structures Operating Systems Networking DATABASE Database Basics SQL Server Basics SQL Serve
Core Java Java Basics Advanced Java UNIX Unix File Management Unix Memory Management Unix Proces
The C Language Basics .NET Interview Questions .NET Framework ADO.NET ASP.NET Software Testing

Home
Aptitude
Logical Reasoning
Verbal Ability
GK
Puzzles
Engineering
Interview
Online Test


C Programming :: Declarations and Initializations
@ : Home > C Programming > Declarations and Initializations > General Questions




1. Which of the following statements should be used to obtain a remainder a
dividing 3.14 by 2.1 ?

Document information

Uploaded on
August 4, 2024
Number of pages
3
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
StudyCenter1
4.3
(29)
Sold
232
Followers
91
Items
3811
Last sold
1 month ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions