what is the output of the code and how?
main()
{
int *ptr,x;
x=sizeof(ptr);
printf("%d",x);
}
Answer Posted / veluri.haritha
If a compiler is a 16 bit compiler and its memory model is
tiny or small or compact memory model then the "x" value
will be 2 bytes.
if the memory model is large or huge memory model then the
"x" value will be 4 bytes.
if a compiler is a 32 bit compiler then the also the x value
is 4 bytes
by
V.haritha,not yet joined in B.tech
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
What is meant by 'bit masking'?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
What is "Duff's Device"?
how to find binary of number?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
How can I write a function that takes a format string and a variable number of arguments?
How can a program be made to print the name of a source file where an error occurs?
Difference between Shallow copy and Deep copy?
What is the function of multilevel pointer in c?
What are the types of data files?
What is indirection? How many levels of pointers can you have?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
What are the 5 organizational structures?
Why isnt there a numbered, multi-level break statement to break out
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol