Forum: C Sep 21st, 2009 |
| Replies: 7 Views: 446 For those who are lazy to search through internet here is the link: gets() vs fgets() (http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1049157810&id=1043284351) |
Forum: C Sep 14th, 2009 |
| Replies: 7 Views: 797 I am greatly disappointed. |
Forum: C Aug 29th, 2009 |
| Replies: 4 Views: 362 All your code do is assigning each element of your matrix to -1 and then display them. It is no surprise at all that you did not achieve the assignment because you haven't figured or aren't willing... |
Forum: C Aug 5th, 2009 |
| Replies: 18 Views: 585 1. Why create this function when you can simply compare two characters with operator ==.
int Check_Characters(char s1,char s2) {
if(s1==s2)
return 1;
return 0;
} |
Forum: C Aug 4th, 2009 |
| Replies: 7 Views: 392 Here is your code and its logical error.
int RemoveChars(char *S,char c) {
int i=0;
int spaces=0;
char temp;
for(i=0;S[i]!=0;i++) {
temp=S[i];
if(S[i]!=c) {
... |
Forum: C Feb 14th, 2008 |
| Replies: 17 Views: 4,473 Not a good way :( but it works fine.
int sum(int num1, int num2)
{
int total, temp, temptotal;
total = num1 ^ num2;
for(temp = num1 & num2; temp != 0; temp = temptotal & temp) {... |