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
~3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Efficience

I have written a code for checking vfork in unix. But I am getting the ambiguous behavious. When I am using exit(0) in child process , output is fine i.e; output :- Before fork I am a child My name is parent child PID=> 23133 kValue => 2 ] But …

Member Avatar for Efficience
0
282
Member Avatar for Efficience

I have written this C code in which I'm declaring a variable inside switch body with initialializing it to 10.But when I'm running this code it is printing some garbage value. [CODE]#include <stdio.h> int main() { switch(2) { int x=10; case 1: printf("Case 1: %d\n",x); break; case 2: printf("Case 2: …

Member Avatar for Efficience
0
447
Member Avatar for Efficience

Hello Everyone , I have written a simple piece of code for reading an Image file(.png) in c but this code doesn't seem to work properly.Can anyone help me solve this problem of reading an image file in C ? Code I have written is :- [CODE] FILE *file; char …

Member Avatar for Efficience
0
2K
Member Avatar for Efficience

Hello Everyone , I've this strange problem with using char pointer in my c++ programme with the gcc compiler (version 3.4.2). [code] char a='A'; char *c=&a; printf("%p %c\n",c,*c); std::cout<<c<<" "<<*c<<std::endl; [/code] I expect the output of printf and cout to be same but why am I getting strange output like …

Member Avatar for Efficience
0
537