Question

return *a-- * ++*b; void main() { int x = 6, y = 8; x = func(y, y); printf(x - %d, y = %d\n, x, y); X = sub(&y, &y); printf help me 27 28 29
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Start Input a and b Declare sum to to o Initialize Print Sum (Stop (11220 false true Sum=sumti

28)

  • In Call by value, a copy of the variable is passed whereas in Call by reference, a variable itself is passed.
  • In Call by value, actual and formal arguments will be created in different memory locations whereas in Call by reference, actual and formal arguments will be created in the same memory location.
  • In Call by value method original value is not modified whereas, in Call by reference method, the original value is modified.
  • Call by value is the default method in programming languages like C++, PHP, Visual Basic NET, and C# whereas Call by reference is supported only Java language.
  • Call by Value, variables are passed using a straightforward method whereas Call by Reference, pointers are required to store the address of variables.

29)

import java.util.*;

class Strong
{
    static int fact(int n)
    {
        int fac=1;
        for(int i=1;i<=n;i++)
        {
            fac=fac*i;
        }
        return fac;
    }
    public static void main(String args[])
    {
        Scanner sc=new Scanner(System.in);
        System.out.println("Enter the number");
        int number=sc.nextInt();
        int copy=number,digit=0,sum=0;
        while(copy>0)
        {
            digit=copy%10;
            sum+=fact(digit);
            copy=copy/10;
        }
        if(sum==number)
        {
            System.out.println("It is a Strong number");
            
        }
        else{
            System.out.println("It is not a Strong number");
        }
    }
}

Please do like if you like my answer, thanks.

Add a comment
Know the answer?
Add Answer to:
help me 27 28 29 return *a-- * ++*b; void main() { int x = 6,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • C program take values to 9 and the second can take values to 12 if (x...

    C program take values to 9 and the second can take values to 12 if (x > 2^3) printf("d", x); Int s-e; 21. LOST) Write a statement that declare an array of doubles with two indices, such that the first index can 22 (LOL) The following code will print out: 23. (L02.) The following code will print out: PART 2 Fill in the banks questions 3 marts x + 5; else x -- 2; char "stri - "abcd"; char str2[]...

  • lab3RGB.c file: #include <stdio.h> #define AlphaValue 100 int main() { int r, g,b; unsigned int rgb_pack...

    lab3RGB.c file: #include <stdio.h> #define AlphaValue 100 int main() { int r, g,b; unsigned int rgb_pack; int r_unpack, g_unpack,b_unpack; int alpha = AlphaValue; printf("enter R value (0~255): "); scanf("%d",&r); printf("enter G value (0~255): "); scanf("%d",&g); printf("enter B value (0~255): "); scanf("%d",&b); while(! (r<0 || g<0 || b <0) ) { printf("A: %d\t", alpha); printBinary(alpha); printf("\n"); printf("R: %d\t", r); printBinary(r); printf("\n"); printf("G: %d\t", g); printBinary(g); printf("\n"); printf("B: %d\t", b); printBinary(b); printf("\n"); /* do the packing */ //printf("\nPacked: value %d\t", rgb_pack); printBinary(rgb_pack);printf("\n");...

  • tx,y) printf('"Xd %d\n",x,y); void stutt (int a, int b) ( Type Definitions (5 POINTS EACH) 1....

    tx,y) printf('"Xd %d\n",x,y); void stutt (int a, int b) ( Type Definitions (5 POINTS EACH) 1. define a stack type that points to a stacknode" structure for s stack that will manipulate real mumbers Strud steck no de int data shiud stackrode米nett, det Shudt stacknode toct nodej a single real number, respectively 2. define a tarver type that consists of two parts ("partl" and "part2") which contain an aray of 5 integgrs snd tyhedeb strut twver int arod I51 aYrOL...

  • QUESTION 1 Consider the following section of code. Assume the syntax is correct and that it will execute. This question is worth 6 points. int numbers[6]; int sub; for (sub = 0; sub <= 5; sub +=...

    QUESTION 1 Consider the following section of code. Assume the syntax is correct and that it will execute. This question is worth 6 points. int numbers[6]; int sub; for (sub = 0; sub <= 5; sub += 2)         numbers[sub] = sub; What is contained in the array numbers? A. numbers 0 1 2 3 4 5 x x x x [ 0 ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ x...

  • please help me on 12 106 Java Concepts Advanced Placement CS Study Guide 3 12. Consider...

    please help me on 12 106 Java Concepts Advanced Placement CS Study Guide 3 12. Consider the following code segment. int count = 0; for (int x = 0; x< 3; x++) for (int y = x; y < 3; y++) for (int z - y: z < 3; 2++) count++; What is the value of count after the code segment is executed? a 81 b. 27 JOHNNNN mshe thote c. 10x d. 9 e, 6 13. Each segment of...

  • I need 24,25,26,27 &28(rest of 28 is on the second attachment) Last name, First namc b....

    I need 24,25,26,27 &28(rest of 28 is on the second attachment) Last name, First namc b. inverse; direct C. Inverse: inverse d. direct, direct 24. When the price of a product increases, a consumer is able to buy less of it with a givern moncy income. This describes the a cost effect. b. inflationary effect c. income effect. d. substitution effect. 25. If two goods are complements, a they are consumed independently b. an increase in the price of one...

  • 28) A sample of sulfur contains 1.81 x 1024 atoms of sulfur How many moles of...

    28) A sample of sulfur contains 1.81 x 1024 atoms of sulfur How many moles of sulfur 28) does this represent? A) 3.01 mol B) 1.81 mol C) 1.77 mol D) 1.09 mol E) 0.333 mol 29) When the equation below is balanced with the lowest possible whole number coefficients, what is the sum of the coefficients? 29) Ca(s) + HCl(r) → CaCl2(s) + H26) A) 2 B) 5 C) 4 D) 8 E) 10 o) Aspirin is the common...

  • Matlab Regula Falsi Method A zero of f(x) = x^2 -4x-12.2 is known to exist on...

    Matlab Regula Falsi Method A zero of f(x) = x^2 -4x-12.2 is known to exist on the interval [1.2 , 2.2 , 3.2,...9.2] and respective right endpoints x1 =[2.2 ,3.2, 4.2....10.2], find the sub-interval in which the zero exists. Set the left endpoint of this sub-interval =a and the right endpoint=b With tolerance of 10^-9, use the Regular Falsi method to compute the root of (f) in [a,b] User input is required at ##### CONTENTS Close Courses LMS Integration Documentation...

  • Greeting! Kindly help me to solve my finals in PYTHON, I don't have a knowledge in...

    Greeting! Kindly help me to solve my finals in PYTHON, I don't have a knowledge in PYTHON, new student. Please, please, I'm begging, Kindly answers all the questions. I'm hoping to grant my request. Thanks in advanced. 1.) What is the output of the following snippet? l1 = [1,2] for v in range(2): l1.insert(-1,l1[v]) print(l1)        a.) [1, 2, 2, 2]        b.) [1, 1, 1, 2]        c.) [1, 2, 1, 2]        d.) [1,...

  • I NEED HELP WITH DEBUGGING A C PROGRAM! PLEASE HEAR ME OUT AND READ THIS. I...

    I NEED HELP WITH DEBUGGING A C PROGRAM! PLEASE HEAR ME OUT AND READ THIS. I just have to explain a lot so you understand how the program should work. In C programming, write a simple program to take a text file as input and encrypt/decrypt it by reading the text bit by bit, and swap the bits if it is specified by the first line of the text file to do so (will explain below, and please let me...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT