i need help with this C language programing Whats wrong with

i need help with this C language programing

What\'s wrong with the following function call; (3 dots means I\'m not showing all of the program steps) #include double find scale(double x. int n); intmain(void) {double num_1. num_3; int num_2; num 3 = Find .scale(num_1), num_2); returns(0)} double find scale (double x.int n) return(0);} a Suppose You enter the following condition with x equal to 5. does the conditions below\' evaluate to true or false? Why? if(x

Solution

3.

here in the first condition
if(x<=0||x=1)

in the above condition there is an error that is \'x=1\' while comparing values we should put \'==\' not to
have\'=\' so it gives syntax error if you correct the above condition

if(x<=0||x==1)
then it doesnt satify x=5 ,so it is false
explanation: here by taking baove condtion 5 is not lessthan 0 and equals to 1

coming to the second statement
if(x%2!=2)
it will statify when x=5; so that it will evalates to true
explanation:here 5%2=>1 so 1!=2 so it will statify 5

b.examples of preprocessive directives is
1)#include
2)#undef
3)#ifdef
4)#ifndef
5)#if
6)#else

c. it is onetype of special purpose register which is used by the processor to store the address of next

instruction which is to be executed .this program counter is updated by pla.

i need help with this C language programing What\'s wrong with the following function call; (3 dots means I\'m not showing all of the program steps) #include do

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site