the inner loop in the createGraph() is getting executed twice while reading status for each edge...does anyone know..y is it happenning??...is the code considering "enter" as another input value??
the inner loop in the createGraph() is getting executed twice while reading status for each edge...does anyone know..y is it happenning??...is the code considering "enter" as another input value??
Post your code here... don't make us chase it.
add \n in scan f before %cCode:printf("\nIs there any edge between %d and %d vertices??(y)",i,j); scanf("\n%c",&ch);//add "\n" in scanf ();
thank you for your information. commonTater .