1004 is the correct answer. One another way to solve the
problem is convert the decimal to binary then to the Hexa
(machine way!)
4100 (decimal) ->1,00 00,00 00,01 00 (binary) -> 1004 (hexa)
I wonder if the nujmber 4100 was picked because it is only 4
more than the "round number" 4096, which is the typical page
size on most 32-bit MMU paging architectures and whose hex
value is 0x1000. Then just add 4 for 0x1004. (Or maybe I'm
over thinking it.)
THE GIVEN NO IS DECIMAL VALUE(4100) SO, FIRST WE NEED TO
CONVERT THAT VALUE IN TO BINARY VALUE.
THIS IS POSSIBLE BY DIVIDING BY 2 UP TO 0 OR 1.
THEN WE NEED TO SEPARATE THOSE VALUES BY 4 APART.
THEN USING 8421 RULE WE HAVE TO GIVE VALUE.
ie,4100 when divide we get 0001 0000 0000 0100.
the answer is exactly 1004.
#include<stdio.h>
int fun();
int i;
int main()
{
while(i)
{
fun();
main();
}
printf("hello \n");
return 0;
}
int fun()
{
printf("hi");
}
answer is hello.how??wat is tat while(i) mean?
which of the following statements is incorrect
a.typedef struct new{
int n1;
char n2;
} DATA;
b.typedef struct {
int n3;
char *n4;
}ICE;
c.typedef union {
int n5;
float n6;
} UDT;
d.#typedef union {
int n7;
float n8;
} TUDAT;
9.how do you write a function that takes a variable number
of arguments? What is the prototype of printf () function?
10.How do you access command-line arguments?
11.what does ‘#include<stdio.h>’ mean?
12.what is the difference between #include<> and #include”…”?
13.what are # pragma staments?
14.what is the most appropriate way to write a
multi-statement macro?
I have an array of 100 elements. Each element contains some
text. i want to:
append a star character to the end of every fifth element
remove every second character from every tenth element,
and…
add a line feed (ascii 10) after the 30th character of
every array element whose length is greater than 30
characters.
What is the output for the following program
#include<stdio.h>
main()
{
char a[5][5],flag;
a[0][0]='A';
flag=((a==*a)&&(*a==a[0]));
printf("%d\n",flag);
}