In C++ all false relational expressions have a mathematical value of 0.
#include<stdio.h> int main() { int d,j=1,i,flag=0,count=0,k=0; int b[]; char a[],c; printf("enter the number="); scanf("%s",a); printf("enter the digit="); scanf("%c",&c); printf("the place value of given digit is:"); for(i=0;a[i]!='\0';i++) { if(a[i]==c) { b[k]==a[i]-'0'; b[k]=b[k]=*j; flag=1; count++; k++; } j=j*10; } if(flag==1) { printf("the place value of given digit %c is:",c); for(i=0;i<count;i++) printf("\n%d",b[i]); } else printf("your entered digit is not present in number"); return 0; }
In C: result = value & ~0xFFDF
There is not enough information available to answer this question. The result of 72 divided by c will be an error if c is zero (0), a positive number if c is positive, and a negative number if c is negative.
if it is a signed int the the range is -32768 to 32767if its unsigned then 0 to 65535
depends, when c>0, yes. when c=0 it's equal 4*0=0 and when c<0 it is smaller, because c=4: 4*-2=-8 and -8 is smaller than -2
1.2
It is the intercept: the value that y takes when x = 0
In C++ all false relational expressions have a mathematical value of 0.
It depends on the value of c. If c = 0 then 0-0+5 = 5 If c = 1 then 1-2+5 = 4 If c = 2 then 4-4+5 = 5 and so on.
lil tj
I'm not sure. I have written C programs in which the default value was what ever happened to be in the variable's memory location when the space was allocated. So it could be 0. Or it could be anything. That is why it is always important to initialize variables when using C. I don't know if this is true with modern C compilers. No default value for automatic variables, 0 for others.
#include<stdio.h> int main() { int d,j=1,i,flag=0,count=0,k=0; int b[]; char a[],c; printf("enter the number="); scanf("%s",a); printf("enter the digit="); scanf("%c",&c); printf("the place value of given digit is:"); for(i=0;a[i]!='\0';i++) { if(a[i]==c) { b[k]==a[i]-'0'; b[k]=b[k]=*j; flag=1; count++; k++; } j=j*10; } if(flag==1) { printf("the place value of given digit %c is:",c); for(i=0;i<count;i++) printf("\n%d",b[i]); } else printf("your entered digit is not present in number"); return 0; }
If an action has been performed and in order to revert it, you have to roll back it. Ex - A = 2, B = 3, C = 0. Now compute C = A + B. C = 2 + 3.Which is 5. So, if you have to roll back then the new value of C will be replaced by its old value i.e. Zero (0).
Speed of sound in air is c ≈ 331 + 0.6 × T. T = Temperature in °C. Speed of sound in air at 0°C is c ≈ 331 + 0.6 × 0 = 331 m/s.
In C: result = value & ~0xFFDF
The original equation, ax2 + bx + c = 0 has two equal roots whose value is -b/2a.