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 |
I have one doubt. What does below statement mean? #define sizeof(operator) where operator can be int or float etc. Does this statement meaningful and where it can be used?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
What do you mean by dynamic memory allocation in c?
In a byte, what is the maximum decimal number that you can accommodate?
what type of questions arrive in interview over c programming?
Are the variables argc and argv are local to main?
What is the output of the following progarm? #include<stdio.h> main( ) { int x,y=10; x=4; y=fact(x); printf(ā%d\nā,y); } unsigned int fact(int x) { return(x*fact(x-1)); } A. 24 B. 10 C. 4 D. none
How can I generate floating-point random numbers?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
2)#include<iostream.h> main() { printf("Hello World"); } the program prints Hello World without changing main() the o/p should be intialisation Hello World Desruct the changes should be a)iostream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<<Destruct b) c) d)none of the above
What are the 4 data types?
what are the general concepts of c and c++