why program counter is 16 bit?
Answers were Sorted based on User's Feedback
Answer / vishnu
Program counter depends on the architecture. since
instructions will be fetched from memory and inorder to
address the address in the memory PC should be 16 bit. It
contains address from which memory should the next
instruction is fetched.
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / sandeep rehlan
Since Program counter stores the address of the next
instruction to be executed.and address are of 2 bytes.
So,the program counter is a 16 bit.
| Is This Answer Correct ? | 3 Yes | 0 No |
Write a code to remove duplicates in a string.
Why do we use int main?
How can I remove the trailing spaces from a string?
Difference between goto, long jmp() and setjmp()?
What is the return type of sizeof?
wat is the output #define VOLEDEMORT _who_must_not_be_named int main() { printf("VOLEDEMORT"); }
Explain the difference between strcpy() and memcpy() function?
what is the format specifier for printing a pointer value?
How would you obtain the current time and difference between two times?
Question 1: You want to conduct a survey within your classroom, on the quality of canteen’s food. You ask each of your class fellows to rank the quality of food between 1 and 5 (1 representing excellent quality and 5 representing worst quality). During the survey, you make a list containing the roll# of student and the opinion given by that student. The list can be as follow Roll # Opinion 234 1 235 1 236 5 237 1 238 2 239 3 240 5 241 5 242 1 To get the results of the survey, you need to determine the frequency of each opinion value. The frequency of an opinion is determined by counting the number of students giving that opinion. For example, for the above list the frequency of opinion value 1 is 4 and frequency of opinion value 4 is 0. After getting the frequency of each opinion, you can easily judge about the quality of the food by seeing through the frequency of each opinion. You need to develop a program to calculate the results of this survey. The program inputs the opinion of 50 students and counts the frequency of each opinion. It then displays a report showing the frequency of each opinion. Sample output: Opinion Frequency Remarks 1 5 Excellent 2 10 Good 3 15 Normal 4 10 Bad 5 10 Really bad
what does the following function print? func(int i) { if(i%2)return 0; eale return 1; } main() { int =3; i=func(i); i=func(i); printf("%d",i);}
what is the output of the code and how? main() { int *ptr,x; x=sizeof(ptr); printf("%d",x); }