Search Results

Showing results 1 to 40 of 47
Search took 0.01 seconds.
Search: Posts Made By: galmca
Forum: C Apr 14th, 2006
Replies: 13
Views: 24,905
Posted By galmca
oh my code is this...

#include<stdio.h>
#include<conio.h>
void main()
{
int n,i,c=0;
clrscr();
printf("enter the number:");
scanf("%d",&n);
Forum: C Apr 14th, 2006
Replies: 13
Views: 24,905
Posted By galmca
i have looked at them..but didn't quite get exactly what i wanted...ive written this code i hope any1 of u will be able to help me to generate the series upto a specific number of all those prime...
Forum: C Apr 14th, 2006
Replies: 13
Views: 24,905
Posted By galmca
i 'm trying to make this program of a prime number in c language but ive not been able to do so,can any 1 of u plz help me out...i want to do 2 things...
1)First,test whether a number is prime or...
Forum: C Mar 25th, 2005
Replies: 5
Views: 6,727
Posted By galmca
OUTPUT SHOWING ON RUNNING THE PROGRAM:
the tree is:
95908256484630261715
the tree in inorder traversal is:
1517263046485682909515
0 numbers found17
1 numbers found26
2 numbers found30
3...
Forum: C Mar 24th, 2005
Replies: 5
Views: 6,727
Posted By galmca
hi...i am really facing a problem in printing a "binary search tree which does an inorder traversal and searches for a node and insert a node"....so i have written a program for that but it doesn't...
Forum: C Feb 10th, 2005
Replies: 4
Views: 4,929
Posted By galmca
so what do i do then? it is still not running.....help me out here ......please...
Forum: C Feb 10th, 2005
Replies: 4
Views: 4,929
Posted By galmca
#include<stdio.h>
#include<conio.h>
struct link
{
int data;
struct link*ptr;
};
typedef struct link node;
struct link1
{
Forum: C Feb 2nd, 2005
Replies: 7
Views: 4,818
Posted By galmca
plz reply.....to my code.....its not running still..there is some mistake in the betwen section iam sure...please help me out with my code...
Forum: C Feb 1st, 2005
Replies: 7
Views: 4,818
Posted By galmca
i am sorry....but i didn't mean to be rude at all....i said please if u could make some necessary changes that r reuired to make my program run successfuly because i know that you guys can only help...
Forum: C Feb 1st, 2005
Replies: 7
Views: 4,818
Posted By galmca
i've written a code for insertion in a linked list for all the 3 cases that is ...at the end,in the beginning & in between.....when i run this code then it runs successfully for insertion at end and...
Forum: C Jan 24th, 2005
Replies: 6
Solved: binary search
Views: 31,303
Posted By galmca
ok now when i run this it gives me the out put correctly ...thx for helping me out.....thx.alot.
Forum: C Jan 24th, 2005
Replies: 6
Solved: binary search
Views: 31,303
Posted By galmca
plz help me out here????
im not able to understand...what do u want me to try?could u plz make some necessary changes in my code in order to make it properly run!!!!!!
Forum: C Jan 24th, 2005
Replies: 6
Solved: binary search
Views: 31,303
Posted By galmca
this is a code for the binary search program in c language.now the program is not showing any error but when i run this program then the output is like:
enter the total numbers:6
enter the array...
Forum: C Jan 9th, 2005
Replies: 7
Views: 10,211
Posted By galmca
#include <stdio.h>
#define SIZE 10

int main()
{
int a[ SIZE ];
int i,n,pass,hold;
printf("enter the number of elements in an array:");
scanf("%d",&n);
Forum: C Jan 8th, 2005
Replies: 7
Views: 6,210
Posted By galmca
plz tell me the errors in my program.....im not able to find out....the errors in my program...plz tell me what r the changes that i need to make in order to make the program run correctly for all...
Forum: C Jan 8th, 2005
Replies: 7
Views: 6,210
Posted By galmca
what is the error in this program?im still not able to find out?it is still giving me the same output of 12 3 4 5 6 7 8 9 10 52 30 ....what is the error here?
[code]
#include<stdio.h>
...
Forum: C Jan 7th, 2005
Replies: 7
Views: 6,210
Posted By galmca
#include<stdio.h>
#include<conio.h>
void main()
{
int a[11],i,j,k,ch,sh,e;
clrscr();
printf("enter array elements:");
for(i=0;i<10;i++)
scanf("%d",&a[i]);
printf("enter choice\n1.in...
Forum: C Jan 7th, 2005
Replies: 2
Views: 20,339
Posted By galmca
hi
i am right now new to c language..and i have been facing problem in 1 array problem where i have to insert an element in to an array...i would like ur help plzz..i have tried everything but i m...
Forum: C Jan 7th, 2005
Replies: 7
Views: 6,210
Posted By galmca
hi
i am right now new to c language..and i have been facing problem in 1 array problem where i have to insert an element in to an array...i would like ur help plzz..i have tried everything but i m...
Forum: C Nov 3rd, 2004
Replies: 49
Views: 18,695
Posted By galmca
Forum: C Nov 2nd, 2004
Replies: 49
Views: 18,695
Posted By galmca
i didn't understand what u did above in the code of urs;;;void duplicate(int a[],size,location)
{
_______________________
_________________________
}
this whole thing i diodn't understand what...
Forum: C Nov 2nd, 2004
Replies: 49
Views: 18,695
Posted By galmca
ahh well i really appreciate ur concern by writing that code for me.......but i will be highly thankful to u if u could just make some necessary changes in MY code above coz im pretty clear with the...
Forum: C Nov 2nd, 2004
Replies: 49
Views: 18,695
Posted By galmca
yes what u said is correct but just tell me 1 thing.........u have taken 5 inputs as 10 20 30 10 50 so it is printing correct but just notice if u take 10 20 10 30 40
then what will it print?it will...
Forum: C Nov 2nd, 2004
Replies: 6
Views: 1,973
Posted By galmca
thx guys.....although it was just a small mistake of putting my("\n") outside the j loop but still it was worth telling me that...........thx alot..........my program is running absolutely fine...
Forum: C Nov 2nd, 2004
Replies: 49
Views: 18,695
Posted By galmca
But My Problem I Still There.......it Is Still Not Giving The Desired Output Even If I Don't Use Fflush(stdin) Over There........so How Can I Make My Code Run....if Suppose...if Enter 5 Elements...
Forum: C Nov 2nd, 2004
Replies: 6
Views: 1,973
Posted By galmca
But When I Run This Code.....then Here I Have To Print The Sum Of 2 Tables...
First Table:
1 2 3 4
5 6 7 8
9 10 11 12

Second Table:
10 11 12 13
14 15 16 17
18 19 20 21
Forum: C Nov 2nd, 2004
Replies: 6
Views: 1,973
Posted By galmca
hi
"this program is for adding 2 tables with 3 rows and 4 columns" ....
so i have done like this......
#include<stdio.h>
#include<conio.h>
void main()
{
int a[3][4],b[3][4],c[3][4];
int...
Forum: C Nov 2nd, 2004
Replies: 49
Views: 18,695
Posted By galmca
i have tried using that what u just said that i have to close the for loop for (k=j;....)
before the for loop for(i=....)
but it is still giving very weird output and not the desired output what i...
Forum: C Nov 2nd, 2004
Replies: 49
Views: 18,695
Posted By galmca
could u plz tell me what should i have done...i haven't been able to come up with the answers......i really don't know what to do....now in this code.......plz tell me what should i have...
Forum: C Nov 2nd, 2004
Replies: 49
Views: 18,695
Posted By galmca
but when i run this codeby entering five values as.....
ENTER ARRAY ELEMENTS:
10
20
30
10
40
then it prints::
duplicate element exists:10
ARRAY AFTER DELETION:
Forum: C Nov 2nd, 2004
Replies: 49
Views: 18,695
Posted By galmca
hi
i have just 1 question could any of u plz solve this.,it is.........TO DELETE DUPLICATE ELEMENTS IN AN ARRAY.......i have done like this......

Code:


#include<stdio.h>
#include<conio.h>...
Forum: C Nov 1st, 2004
Replies: 49
Views: 18,695
Posted By galmca
but when i run this codeby entering five values as.....
ENTER ARRAY ELEMENTS:
10
20
30
10
40
then it prints::
duplicate element exists:10
ARRAY AFTER DELETION:
Forum: C Nov 1st, 2004
Replies: 49
Views: 18,695
Posted By galmca
hi
i have just 1 question could any of u plz solve this.,it is.........TO DELETE DUPLICATE ELEMENTS IN AN ARRAY.......i have done like this......

#include<stdio.h>
#include<conio.h>
void...
Forum: C Oct 31st, 2004
Replies: 49
Views: 18,695
Posted By galmca
thx narue......thx for accepting my apology...i really appreciate that....and yes i will continue to come here to learn from the very intelligent and brilliant teachers like u,so that i can learn...
Forum: C Oct 31st, 2004
Replies: 49
Views: 18,695
Posted By galmca
thx alot narue..... my code is running fine now......but im also really very sorry about....that day when i complained about not getting my program done .....to be honest with u this is the first...
Forum: C Oct 31st, 2004
Replies: 49
Views: 18,695
Posted By galmca
could any 1 tell plz...what do i do now?
for(i=0;i<5;i++)
{
for(j=i;j<5;j++)
{
if((i!=j)&&(a[i]==a[j]))
printf("duplicate exists");
else
printf("duplicate does not exists");
}
Forum: C Oct 31st, 2004
Replies: 49
Views: 18,695
Posted By galmca
i have tried using that what u just told.....but it is still giving very weird output when i enter 5 array elements: 1 2 3 1 4 ....then it should print duplicate exists:1
instead of printing that it...
Forum: C Oct 30th, 2004
Replies: 49
Views: 18,695
Posted By galmca
Forum: C Oct 30th, 2004
Replies: 49
Views: 18,695
Posted By galmca
im really sorry but i didn't get the code which has been provided to me...it seems really complex when i read that....so could u plz help me out in the terms of the way i wrote....that way i'll be...
Forum: C Oct 29th, 2004
Replies: 49
Views: 18,695
Posted By galmca
help me out guys plzzz!!!!!!! im waiting for ur reply....any kind of help would be highly appreciable.......
Showing results 1 to 40 of 47

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC