what is the output of the code and how?
main()
{
int *ptr,x;
x=sizeof(ptr);
printf("%d",x);
}
Answer / 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 |
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
Can you explain the four storage classes in C?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
#include<stdio.h> main() { char *p1; char *p2; p1=(char *) malloc(25); p2=(char *) malloc(25); strcpy(p1,"Ramco"); strcpy(p2,"Systems"); strcat(p1,p2); printf("%s",p1); } Tell me the output?
Why calloc is better than malloc?
Is register a keyword in c?
what is develop in c language
create an SINGLE LINKED LISTS and reverse the data in the lists completely
here is a link to download Let_Us_C_-_Yashwant_Kanetkar
what is the use of operator ^ in C ? and how it works?
25. It takes five minutes to pass a rumour from one person to two other persons. The tree of rumour continues. Find how many minutes does it take spread the rumour to 768 persons. ?
11 Answers CTS, TCS,
Explain what are the standard predefined macros?