Discuss operator precedence in C programming with examples ​

Answers

Answer 1

Answer:

See picture for the operator precedence.

A very common pitfall is the << (shift) operator.

It has lower precedence than, for instance, the + operator, so a statement like:

int a = 3;

int c = a << 2 + 1;

will produce a different result than:

int c = (a << 2) + 1;

The first will evaluate to c = a<<3.

Discuss Operator Precedence In C Programming With Examples

Related Questions

2 What is the different between mouse and trackbeel?​

Answers

Answer:

Trackball and Mouse is that trackball is a stationary pointing device with a ball on its top or side. While mouse is a pointing device that fits comfortably under the palm of your hand. With a mouse, users control the movement of the pointer.

Explanation:

I hope this helps!

Answer:

mouse moves by using a sensor to see how far the mouse has moved in real time and give the input to the computer. and a trackball uses sensors to see how far the ball has moved and give the input to the computer

Explanation:

How do i open screenshots on school chromebook?

Answers

Answer:

you have to open your file explorer and open the screenshot folder.

Explanation:

Answer:

1. Go to the small magnifying glass on the bottom of the taskbar.

2. Then type in "Snipping Tool" in the search bar.

3. Then click on "Open" or the App.

4. Then a small window should pop up and click "Try Snip & Sketch"

5. Then press the "New" button.

6. The screen should go slightly darker and you can drag your mouse to whatever image or screenshot you want to take. As long as it's on the desktop screen, it shall capture all of it.

7. After capturing the image you can edit it with the tools provided.

8. After finishing on the steps, you can either press either "Save As" or "Copy".

Instead of being so troublesome, you can always pin the app to taskbar or press "Window Logo Key + Shift + S". There should be a notification after finished.  

After save as you can go look at your files afterwards.  

Computer always produces wrong output true or false

Answers

Answer: You really need a screenshot here. That's it

Explanation: I can't give a definitive answer without a screenshot, lol

Info, and Contact Us. She will create a hierarchy of page elements and revise the style sheets. In this case, the Home page contains two _____ elements.

Answers

Answer:

link

Explanation:

We call any device connected to the Internet a(n) ________. Group of answer choices router host IP client

Answers

Answer:

ADSL modem

Explanation:

What does it mean when we say that Unity “handles terrain natively,” and how can that assist in game development?

Answers

Answer:

yes it is true

Explanation:

happy fun

Identify science and technology policies that could be adapted or implemented in the Philippines?​

Answers

Answer:

In the Philippines, universities dominate the research arena. So you have scientists who make research for the sake of research.

The private sector may or may not adopt the research. If a research in UP finds a molecule that may kill cancer, we are not sure whether that research will be adopted or not.

We are not sure if that research will be continued to actual creation of a medicine of cancer. This is because our scientists are working in universities and not in actual pharma companies.

In other countries, the scientists build their own companies. So their research go from drug development to actual manufacturing and marketing of medicines.

So when they start a research, you know that in the next 5 to 10 years, these scientists will produce drugs which the public can benefit from.

This is why the Philippine research is not thriving as it should. Our government should support our start ups.

When scientists are given grants for research, they should also be given grants to start their company. Unfortunately, start up grant is not a function of the DOST. It is of the DTI.    

Explanation:

In the Philippines, universities dominate the research arena. So you have scientists who make research for the sake of research.

Which sector does not adopt research?

The private sector may or may not adopt the research. If a research in UP finds a molecule that may kill cancer, we are not sure whether that research will be adopted or not.

We are not sure if that research will be continued to actual creation of a medicine of cancer. This is because our scientists are working in universities and not in actual pharma companies.

In other countries, the scientists build their own companies. So their research go from drug development to actual manufacturing and marketing of medicines. So when they start a research, you know that in the next 5 to 10 years, these scientists will produce drugs which the public can benefit from.

This is why the Philippine research is not thriving as it should. Our government should support our start ups. When scientists are given grants for research, they should also be given grants to start their company. Unfortunately, start up grant is not a function of the dust. It is of the DTI.  

Therefore, In the Philippines, universities dominate the research arena. So you have scientists who make research for the sake of research.

Learn more about Philippine on:

https://brainly.com/question/26599508

#SPJ2

 

4. What organization is responsible for publishing Request for Comments (RFC)?

Answers

Answer:

IETF

Explanation:

The Internet Engineering Task Force.

Write the program of while loop .

Answers

Answer:#include<stdio.h>  

int main(){    

int i=1;      

while(i<=10){      

printf("%d \n",i);      

i++;      

}  

return 0;  

}    

Explanation:

This is the program I coded on the while loop.

In this exercise we have to use the knowledge of programming in C code  to describe a looping so we have the code.

The code can be found in the attached image.

How to repeat code in C?

Repeat commands are a feature that allows a certain piece of code in a program to be repeated a certain number of times. In C there are three repetition commands: while, do-while and for.

So in a simpler way the code is:

#include<stdio.h>  

int main(){    

int i=1;  

while(i<=10){    

printf("%d \n",i);    

i++;    

}  

return 0;  

}    

See more about C code at brainly.com/question/25870717

examples of a computer organizing itself

Answers

I don’t think if there is one that can do that only softwares

Which of formula contains an absolute cell reference?
=A1!+(A4*2%)
=SUM($B$7:$B$9)
=4000+2/(3*24)
=COUNT(A3:A7, B3:B12)

Answers

Which formula contains an absolute cell reference? =SUM($B$7:$B$9)

The diagram shows the positions of the Sun, Earth, and Moon during each moon phase. When viewed from Earth, at what point does the Moon appear darkest?

Answers

Answer:

B

Explanation:

when it is on the same side of Earth as the Sun because it appears all black because of the shadow

A game is played by moving a game piece left or right along a horizontal game board. The board consists of spaces of various colors, as shown. The circle represents the initial location of the game piece.

Yellow Black Green Green Red Yellow Black Black Yellow Black

The following algorithm indicates how the game is played. The game continues until the game is either won by landing on the red space or lost when the piece moves off either end of the board.

Step 1: Place a game piece on a space that is not red and set a counter to 0.
Step 2: If the game piece is on a yellow space, move the game piece 3 positions to the left and go to step 3. Otherwise, if the game piece is on a black space, move the game piece 1 position to the left and go to step 3. Otherwise, if the game piece is on a green space, move the game piece 2 positions to the right and go to step 3.
Step 3: Increase the value of the counter by 1.
Step 4: If game piece is on the red space or moved off the end of the game board, the game is complete. Otherwise, go back to step 2. If a game is begun by placing the game piece on the rightmost black space for step 1, what will be the value of the counter at the end of the game

Required:
If game piece is on the red space or moved off the end of the game board, the game is complete. Otherwise, go back to step 2. If a game is begun by placing the game piece on the rightmost black space for step 1, what will be the value of the counter at the end of the game?

Answers

The value of the counter of the given algorithm at the end of the game is; 4

How to solve Algorithms?

From the attached table, we see the algorithm of the given game.

Now, the black circle is initially under the column black.

From the given conditions, step 1 says since the space is not red we should set a counter to 0. Thus, the counter will be set to 0.

Since the game piece is under the black column, according to step 2, we will move the game piece 1 position to the left and go to step 3.

By moving one position to the left, the game piece will be under the yellow column. We now increase the counter by 1 to 1.

According to step 2, at yellow, we move the game piece 3 places to the left and it will land on yellow and we increase the counter to 2 and move 3 places to the left again to stop at green.

At green we increase the counter to 3 and then move two spaces to the left which is the left end of the board and we will increase the counter to 4 and the game will be complete according to step 4.

Read more about Solving Algorithms at; https://brainly.com/question/24793921

In Task 2, you worked with Sleuth Kit and Autopsy which rely on the Linux Web service called __________.

Answers

Answer: Apache

Explanation:

You restarted Apache system in the cmd in the kali linux vm.

1. (A) What do you mean by computer? Discuss the use of
computer in daily life.

Answers

Answer:

A computer is an electronic device that manipulates information or data.

We use computers in schools and colleges all around the world.

Computer technologies are important to teach students digitally and creatively with data visualization. In a classroom, students used computers to explore their creativity and imagination.

Answer:

an electronic device for storing and processing data, typically in binary form, according to instructions given to it in a variable program.

Some people use a computer to take online classes.Computers have many other uses at home like financial calculations also. You can also access banking and business services from home via the internet with the help of a computer.

In the context of the data administration component of a database management system (DBMS), the acronym CRUD stands for _____. Group of answer choices create, read, update, and delete copy, revise, undo, and define create, repeat, undo, and develop copy, read, update, and define

Answers

Answer:

C.R.U.D stands for Create, Read, Update, Delete.

Explanation:

A small office providing television services in Chicago has contacted Mark, a network administrator, to set up a network connection for their operations. The total strength of devices will not exceed 10, and so Mark decides that a LAN connection is all that is required for their functionality. Mark, however, wants to ensure that the devices are connected centrally, and for this purpose he plans on installing a central switch. Analyze which physical topology is best suited for this purpose.

Answers

The physical topology which is best suited for this network connection is a star topology.

What is a topology?

A topology can be defined as the graphical representation of the various networking devices that are used to create and manage a network connection.

The types of topology.

In Computer networking, there are six main types of topology and these include the following:

Bus topologyTree topologyHybrid topologyRing topologyMesh topologyStar topology

A star topology refers to a type of topology in which each networking device is physically connected to a central node such as a hub, router, or switch, which are typically acting as connecting nodes.

Read more on topology here: https://brainly.com/question/17036446

(C) Describe about the different types of computer
peripherals and memory devices.

Answers

Computer peripheral device

Monitor.

Monitor. Keyboard.

Monitor. Keyboard. Mouse.

Monitor. Keyboard. Mouse. Trackball.

Monitor. Keyboard. Mouse. Trackball. Touchpad.

Monitor. Keyboard. Mouse. Trackball. Touchpad. Pointing stick.

Monitor. Keyboard. Mouse. Trackball. Touchpad. Pointing stick. Joystick.

Monitor. Keyboard. Mouse. Trackball. Touchpad. Pointing stick. Joystick. Light pen.

MEMORY DEVICES :

The main storage is the primary memory, and data and programs are stored in secondary memory. However, memory is not stored in the CPU, but the CPU would only be a mess of wires without it!

RAM (Random Access Memory) and ROM (Read Only Memory) are examples of primary storage. Secondary Storage Devices: Secondary storage is a memory that is stored external to the computer. ... Hard Disk, CD, DVD, Pen/Flash drive, SSD, etc, are examples of secondary storage.

Thus, Computer storage is of two types: ... RAM (Random Access Memory) and ROM (Read Only Memory) are examples of primary storage. Secondary Storage Devices: Secondary storage is a memory that is stored external to the computer. It is mainly used for the permanent and long-term storage of programs and data.

Python problem: The program needs to output the numbers 1 to 9, each on a separate line, followed by a dot:

Answers

Answer:

for i in range(1,10): print("{}.".format(i))

Explanation:

here's a one liner that does what you need.

Help your professor to calculate the exam average and the number of students passing the course by writing a maria program. The program will take as input the number of exam papers and the exam points for each student. At the and show the class average and the number of students passing the course. Note that the passing grade is 60.

Answers

#include <iostream>

using namespace std;

int main ()

{

int num =0 ;

int points=0 ;

int pointss=0;

int term =0;

int passes =0;

cout<<"type number of "<<endl;

cin>> num;

for(int i =0;i<num;i++)

{

cout<<"type points "<<endl;

cin>>points;

pointss=points + pointss;

if(points>=60)

{

passes++;

}

}

cout<<"that are points: "<<endl;

cout<<pointss<<endl;

cout<<"that is num: "<<endl;

cout<<num<<endl;

cout<<"average: "<<endl;

cout<<pointss/num<<endl;

cout<<"Number of students who pass: "<<endl;

cout<<passes<<endl;

return 0;

}

Question 1
Which of the following is a software threat?
a
O A) session hijacking
OB) overflow attack
OC) cross-site scripting (XSS)
OD) hacking

Answers

well we can rule out session as this is a threat to the computer not the software

next let's talk about overflow attack as this can be used on any software that has connecten to the internet

cross site scripting is for websites only as it involves loading code on to a website

and hacking if a very broad term so I would rule that out also

so I believe the answer is b

hope I helped

scav

The one that is software threat is an overflow attack. The correct option is b.

What is a software threat?

Software threats are harmful programs and pieces of code that can harm your computer and steal your personal or financial data. Because of this, these harmful programs are frequently referred to as malware (short for "malicious software").

Nowadays, many software vulnerabilities explicitly target smartphones, making cybersecurity strategies based on desktop PCs ineffective in some cases.

Apps, and smartphone viruses, are merely mobile versions of viruses that target your desktop or laptop computer. Blue jacking is the practice of sending unwanted or unsolicited Bluetooth messages to complete strangers.

Therefore, the correct option is b, overflow attack.

To learn more about software threats, refer to the below link:

https://brainly.com/question/28048202

#SPJ2

What does the x mean in .docx

Answers

Answer:

When Microsoft switched to XML-based file formats in Office 2007, they added the 'x' to the file extensions to differentiate from the previous, incompatible formats such as dox to docx.

In other words. X is extended.

"A document stored on web server and is available on the web is called web page" TRUE OR FALSE​

Answers

Answer:

true .................

What module do you need to import in order to use a pseudo-random number in your game?

A. randomizer
B. guess
C. guesser
D. random

Answers

D: Random I don’t think the others are even valid python Libs

By using the radiant method from the random module and need to import in order to use a pseudo-random number in your game.

What is randint method?

The randint() method is a method or function in the random python module. It is used to get or return an integer number within a specified range.

To use the method, the module must be imported into the python file with the "import random" statement, then the method is referenced using dot notation and specifying the range of integer numbers. Syntax: random. randint first_number, last_number note that the last number in the range is inclusive in the selection.

Random numbers refers to a set of unbiased numbers formed within a defined set of interval. Random number generation using programming paradigm are done using the random module and not the math module.

Therefore, By using the radiant method from the random module and need to import in order to use a pseudo-random number in your game.

Learn more about radiant method on:

https://brainly.com/question/29102331

#SPJ2

Excel 365 is primarily used to produce Word documents.

Answers

If this is a true and false question it would be False

Excel 365 is primarily used to produce Word documents is a false statement.

What is Microsoft Word and Excel meant for?

Microsoft Word is known to be a kind of word processing software that is often used for writing letters, memos, reports and others.

The Microsoft Excel is known to be a spreadsheet software that is meant to be used for calculations, creating charts and recording data about any  business processes.

Conclusively, Excel 365 is primarily used to produce calculations and not word document.

Learn more about Excel from

https://brainly.com/question/25879801

what is the longest word that you can write using the letters only on one row of the keyboard of your computer?

Answers

Answer:

TYPEWRITER is the longest word that you can write using the letters only on one row of your computer's keyboard.

Explanation:

hope this helps

What is the controller in this image know as? Choose one

Answers

Answer:

mode dial

Explanation:

Modify the FitnessTracker class, created in Chapter 4 Programming Exercise 3AB, so that the default constructor calls the three-parameter constructor. Use TestFitnessTracker2 to test the new version of the class.

FitnessTracker2.java:
import java.time.*;
public class FitnessTracker2 {
String activity;
int minutes;
LocalDate date;
public FitnessTracker2() {
}
public FitnessTracker2(String activityParam, int minutesParam, LocalDate dateParam) {
}
public String getActivity() {
}
public int getMinutes() {
}
public LocalDate getDate() {
}
}

TestFitnessTracker2.java:
import java.time.*;
public class TestFitnessTracker2
{
public static void main(String[] args)
{
FitnessTracker2 exercise = new FitnessTracker2();

System.out.println(exercise.getActivity() + " " + exercise.getMinutes() +
" minutes on " + exercise.getDate());

// code to test constructor added for exercise 3b

LocalDate date = LocalDate.of(2020, 8, 20);
FitnessTracker2 exercise2 = new FitnessTracker2("bicycling", 35, date);

System.out.println(exercise2.getActivity() + " " + exercise2.getMinutes() +
" minutes on " + exercise2.getDate());
}
}

Answers

Answer:

Is this coding?

Explanation:

Fill the range c15:e15 with the formula in cell b15 to determine the average revenue per salesperson in quarters 2 and 3 and year to date

Answers

Excel formulas are expressions used to perform computation.

The Excel formula to enter in range C15:E15 are: = (C14/G2) ,= (D14/G2) and = (E14/G2)

How to determine the Excel formula

From the complete question, the formula in cell B15 is:

= (B14/G2)

When the formula is moved to fill the range C15 to E15, we change B14 to C14, D14 and E14.

So, we have:

C15= (C14/G2)

D15= (D14/G2)

E15= (E14/G2)

Hence, the formulas in range C15:E15 are:

= (C14/G2) ,= (D14/G2) and = (E14/G2)

Read more about Excel formulas at:

https://brainly.com/question/14820723

A software repository, also known as a 'repo', is:

Answers

Answer:

A software repository, or “repo” for short, is a storage location for software packages.

Other Questions
An early lover of selfies, which scientist commissioned over a dozen portraits of himself?. how many acute angles dose a right triangle have? Solve for b2(-2b+3)=9 a +3 1/4 = 5 2/9Whats the answer A grocer sells oranges in bags. Each empty bag weighs 2. 5 ounces and each orange weighs 7. 2 ounces. Khalil buys a bag of oranges that weighs 60. 1 ounces. Which equation can be used to find x, the number of oranges in the bag? 7. 2 x = 60. 1 2. 5 x 7. 2 = 60. 1 60. 1 minus x = 2. 5 7. 2 2. 5 7. 2 x = 60. 1. Read the excerpt from "Politics and the English Language" by George Orwell.But if thought corrupts language, language can also corrupt thought. A bad usage can spread by tradition and imitation, even among people who should and do know better. The debased language that I have been discussing is in some ways very convenient. Phrases like a not unjustifiable assumption, leaves much to be desired, would serve no good purpose, a consideration which we should do well to bear in mind, are a continuous temptation, a packet of aspirins always at ones elbow.Which type of evidence is used in this excerpt?statisticsquotationsexampleshypotheticals Why is the "insurance verification and eligibility" function of accounts receivable management important?a. It facilitates patient and family counseling about insurance and payment issues, which includes advising patients and familles about insurance benefits.b. It allows for account follow-up and payment resolution by reviewing remittance advice documents and contacting payers to resolve claims.c. It confirms the patient's insurance plan and eligibility information with the third-party payer to determine the patient's financial responsibility for services rendered. It involves capturing charges and posting payments by entering charges for services and procedures in the medical practice management's billing system. Which graph might represent an eagle population along a river? Explain True or False. Some of the most iconic and influential propaganda ever created was during wartime. Solve system of equation: 7x - 4y = 15x - y = -16 someone please help me with this In a(n) ________ culture, people tend to attach more importance to personal goals than to the needs of the larger community. Why is it important to be objective and fair when stating the oppositions views? The opposition will sue you for slander. You might join the opposition one day. It builds ethos with the audience. Its not important because an insulting tone is best. in which language and script ashoka spread the teaching in buddhism why? Iguazu falls is located in argentina brazil and brainly. Which of the following is equal to 3.8 8?A: (3 + 8) (0.8 + 8)B: (3 8) + (0.8 8)C: (3 8) (0.8 8)D: (3 8) + (0.8 3)NEED ANSWER ASAP LIKE NOW ASAP PLEASE!!! Madison Hotels sold a foreign organization the right to use its brand name and operating know-how in return for a lump-sum payment and a share of the profits. This is an example of Answer each question below, showing ALL work.pls- help me ASAP someone :( Can you please help me What other sources might you refer to when researching the assassination of Julius Caesar ?