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
c x 6
Member Avatar for vaibhav2614

I am writing a C program that requires me to use a dynamically allocated struct which is defined as below. [CODE]typedef struct 513 { 514 char* word; 515 int freq; 516 }wordfreq;[/CODE] When I allocate the word field of this struct, I am allocating this dynamically as well (using strdup). …

Member Avatar for Narue
0
109
Member Avatar for deepin

[code=c] while(1){//return from the loop only when the input is zero printf("\n1: Stack1\n2: Stack2\n0: to return\n"); scanf("%d",&i); switch(i){ case 1: printf("1"); break; case 2: printf(" 2"); break; case 0: printf("Thank you for using the service"); break; default: printf("Give a Valid Option"); break; }//end of switch - case }//end of while …

Member Avatar for WaltP
0
3K
Member Avatar for vaibhav2614

Hi everyone, I've been trying to code up a generic vector implementation in C, and the compiler has not been kind to me... Here is the struct I have defined in a file "vector.h." [CODE]typedef struct 72 { 73 int elemSize; 74 int logLength; 75 int allocLength; 76 int delta; …

Member Avatar for vaibhav2614
0
109