int x=20,y=35;
x=y++ + x++;
y= ++y + ++x;
printf("%d%d\n",x,y);
char *ptr = " Plexus Corp";
char *temp;
ptr+=2;
printf("%s\n",ptr);
*temp = *ptr++;
printf("%s\n",ptr);
What is the final value of port1?
unsigned short port1 = 0x1212FF22;
port1 |= 0x11;
port1 &= ~0x2200;
void Q3()
{
int x=5, y=10;
swap (x,y);
printf("%d %d\n",x,y);
swap2(x,y);
printf("%d %d\n",x,y);
}
explain
const int a;
int const a;
const int *a;
int * const a;
int const * a const;
Please comment on the following interrupt service routine code:
__interrupt double compute_area(double radius)
{
double area = PI * radius * radius;
printf("\nArea = %f", area);
return area;
}
#define SQR( a ) a*a
printf("Answer is %d\n",SQR(6+1));
Review his function and identify any issues or problems with this function
char* GetNewStringAsUppercase(char* string1)
{
int i=0;
char string2[20];
while (i<20 && *(string1+i) != '\0')
{
string2[i] = toupper (*(string1+i));
++i;
}
string2[i] = '\0';
return string2;
}