Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~683 People Reached
Favorite Forums
Favorite Tags
c x 18
Member Avatar for duggydiggy

[code] #include <stdio.h> #include <conio.h> void *memset(void *dest,int value,int cnt); void *memset(void *dest,int val,int cnt) { void *start=dest; while(cnt--) { *((char *)dest)++=(char)val; } return start; } int main() { char arr[]={1,2,3,4}; memset(arr,0,4); printf("%s",arr); _getch(); return 0; } [/code] error : ++ need lvalue I know how to resolve this,but I …

Member Avatar for MrNoob
0
68
Member Avatar for duggydiggy

I have come across a strange behavior.. [CODE] #include <stdio.h> #include <conio.h> int strlen(const char *); int main() { char str[]="rahul"; printf("%d",strlen(str)); _getch(); return 0; } int strlen(const char *str) { const char *eostr=str; while(*eostr++); return eostr - str; } [/CODE] Outputs : In VS9 Length:6 // correct In gcc …

Member Avatar for duggydiggy
0
181
Member Avatar for duggydiggy

Greetings All, I was wondering about how a build process goes on in Vc++. I want to know that is there any intermediate assembly file generated while building a source file as what happens with gcc. If the answer is no ,then why gcc build process has this ones step …

Member Avatar for Hiroshe
0
72
Member Avatar for duggydiggy

Greetings, Is there any way may be some tools to view and explore contents of .obj files (in a formatted or unformatted way) or an executable. Can we do it using gcc? Please guide. Cheers!!

Member Avatar for Salem
0
80
Member Avatar for duggydiggy

After going through lots of stuff about declaration and definition,in a nutshell I understand that the difference is in the memory allocation. In definition yes and in declaration no memory is allocated. Fine ,Is there any process that shows that yes [code] int a; //which is a definition [/code] allocates …

Member Avatar for Salem
0
198
Member Avatar for duggydiggy

Hi, This is a basic question that's why i am confused. When I do printf("%d",sizeof(long double)) in Linux(i am using a vmware) Ans:12 bytes in msvc 2008 Ans:8 bytes My underlying arch for both implementation is intel IA32. What is the reason if the arch is same.If the fundamental data …

Member Avatar for Salem
0
84