1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Len [333]
3 years ago
9

What is the binding time for the following in C/C++ program. Explain. a. The location of memory of a local variable in a functio

n. b. The meaning of the keyword while c. The size in memory of a variable of type int d. The location in memory of a global static variable e. The code for the printf function f. The type of local variable in a function g. The values assigned to a variable h. The size in memory of a pointer
Computers and Technology
1 answer:
Evgen [1.6K]3 years ago
6 0

Answer:

Explained

Explanation:

Binding is the association of an object with its attributes, operations, or name  there are many different types of bindings and bindings can occur at different times .

for example:

1)language definition time binding: for example-binding * to multiplication

2)language implementation time binding: int size and operations

3)compile time binding: binding type to a variable

for instance in int x; x will be treated as an int from here forward

4)link time binding: binding function name to a specific function definition

5)load time binding: binding variable to memory location

6)run time binding: binding variable to memory location or bind a polymorphic variable to specific class type .

 binding time for the

a)6  run time binding

b)1  language definition time binding

c)2  language implementation time binding

d)5  load time binding

e)4  link time binding

f)3  compile time binding

g)3  compile time binding:

h)6 run time binding

You might be interested in
HOW CAN YOU GET THE COOLEST FONTS ON GOGGLE SLIDES???
Viefleur [7K]
I would love to help. but if you could text my number i could help more. i have a chromebook
8 0
2 years ago
Read 2 more answers
Create a Boolean function odd_number_digits(n) that returns True when a positive integer has an odd number of digits. (You may a
Snowcat [4.5K]

Answer:

Following are the code to this question:

import java.util.*;//import package for user input

public class Main//defining class main

{

   public static boolean odd_number_digits(int n)//defining boolean method odd_number_digits

   {

       if(n>0 && n%2!=0)//defining if block that check value is positive and odd number

       {

       return true;//return value true

       }

       else//defining else block

       {

           return false;//return false value

       }

   }

   public static void  sum_odd_digits(int n)//defining a method sum_odd_digits

   {

       int sum=0,i;//defining integer variable

       for(i=0;i<=n;i++)//defining for loop

       {

           if(i%2!=0)//defining if block for odd number

           {

               sum=sum+i;//add odd number

           }

       }

      System.out.print(sum);//use print method to print sum value

   }

public static void main(String[] args) //defining main method

   {

       Scanner ox=new Scanner(System.in);//creating Scanner object

       int n= ox.nextInt();//defining integer variable for input value

       System.out.print(odd_number_digits(n)+ "\n");//use print method to call method

       System.out.println("Sum of odd numbers: ");//print message

       sum_odd_digits(n);//calling method

   }

}

Output:

please find the attachment.

Explanation:

In the above code, two methods "odd_number_digits and sum_odd_digits" are defined in which the first method return type is boolean because it will true or false value, and the second method returns the sum of odd numbers.

In the "odd_number_digits" method,  an integer variable passes as an argument and inside the method, if block is used that check value is a positive and odd number then it will return a true value.

In the "sum_odd_digits" method, it accepts an integer parameter "n", and define integer variable "sum" inside the method, which uses the for loop, inside the loop if block is used that counts odd numbers and adds its in sum and print its value.

8 0
3 years ago
Amelia wants to create a website using the Python computer language to code her site. She will also use CodeSkulptor3 to help he
pishuonlain [190]

Amelia wants to create a website using the Python computer language to code her site. She will also use CodeSkulptor3 is an example of browser-based code editor. The correct option is A.

<h3>What is python?</h3>

Python is a programming language generally used to make websites and software.  Automated tasks and data analysis are also carried out using python.

CodeSkulptor3 is also a browser-based Python interpreter.  It has implemented a subset of Python 3.

Thus, CodeSkulptor3 is an example of browser-based code editor. The correct option is A.

Learn more about python.

brainly.com/question/19045688

#SPJ1

3 0
2 years ago
Why is a niche important in video production
abruzzese [7]

Answers

You need a niche to start your recording for let's say commentary you'll need that for your commentary.

7 0
2 years ago
Read 2 more answers
A critical piece of equipment that provides power to systems even during a black out is called a(n) _______________.
storchak [24]

Answer:C) Uninterruptible power supply

Explanation:Uninterruptible power supply(UPS) is the device that is used when the input source of power does not work or fails and thus it acts as a power supply in the emergency situation.This electronic devices in the protection of the hardware components of computer system etc.

Other option are incorrect because power strips, surge protector and password generator are no the devices that work during the power black out situation.Thus, the correct option is option(C).

7 0
3 years ago
Other questions:
  • Describe the function of the user account section of the control panel
    13·1 answer
  • Clifford created a table using OpenOffice Writer and entered some information into the table. Later, he needed to add more rows
    15·2 answers
  • What acts as a platform on which application software runs?
    8·1 answer
  • What is this line of code doing? scanf("%f", &amp;height);
    6·1 answer
  • Your task is to create a bash shell script that is able to backup all the C++ program files in your current directory. The algor
    10·1 answer
  • The design of a blog refers to:
    10·1 answer
  • If a touch screen chrome is not charging what is wrong with it
    13·2 answers
  • Help plz!! I will mark brainliest
    15·2 answers
  • A. Modify the FitnessTracker class that includes data fields for a fitness activity, the number of minutes spent participating,
    12·1 answer
  • Make The PYTHON Code<br><br> print first 3 character of a string - given "Seattle" expected "Sea"
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!