Search:

Type: Posts; User: daggerhunt

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    562

    Josephous Problem

    Can anyone tell me what is wrong with my code?


    #include<stdio.h>
    #include<conio.h>
    #include<stdlib.h>
    typedef struct Josephous
    {
    int pos;
    struct Josephous *next;
  2. Replies
    2
    Views
    3,725

    Suppose the 1st list is 3--2 5--2 2--0 and...

    Suppose the 1st list is 3--2 5--2 2--0 and the second list is 9--2 4--1 3--0, then this code prints the output as follows :
    27--4 9--2
  3. Replies
    2
    Views
    3,725

    Polynomial Multiplication program

    #include<stdio.h>
    #include<conio.h>
    #include<stdlib.h>
    typedef struct poly_node
    {
    int coeff;
    int power;
    struct poly_node *next;
    }polynode;
    polynode* create(polynode*,int);
  4. Replies
    9
    Views
    1,145

    Please help me out....someone!!!

    Please help me out....someone!!!
  5. Replies
    9
    Views
    1,145

    I am quite sure the problem is only in the insert...

    I am quite sure the problem is only in the insert function. Please do post a reply as soon as possible.
  6. Replies
    9
    Views
    1,145

    Insertion in linked lists

    This code is working for all other key values except the first node value or the "head". If I provide the head->number as the key value, the number entered is not inserted at the beginning. The code...
  7. OK ..I am going to rethink my logic. Thanks for...

    OK ..I am going to rethink my logic. Thanks for the help.
  8. For array size 3, the output I got is this? 1...

    For array size 3, the output I got is this?

    1 2 3
    10 15 14
    9 7 16
  9. The program is giving a wrong output.And also...

    The program is giving a wrong output.And also this code does not work for matrix of all orders.I just want my code to corrected.
  10. Can anyone help me out with this program of spiral matrix?

    #include <stdio.h>
    #include <conio.h>
    int main()
    {
    int arr[100][100];
    int i,j,n,c;
    printf("Enter size of spiral matrix ");
    scanf("%d",&n);
    c=1;
    for(i=0;i<n;i++)
  11. Replies
    9
    Views
    4,458

    Thank you...but I don't understand one thing ,...

    Thank you...but I don't understand one thing , why using gets() makes my program vulnerable to hackers?
  12. Replies
    9
    Views
    4,458

    But its a futile effort.Its not working!!!

    But its a futile effort.Its not working!!!
  13. Replies
    9
    Views
    4,458

    #include int main() { char...

    #include <stdio.h>

    int main()
    {
    char arr[100];
    int count =0;
    int j,i,k;
    char temp;
    printf("enter the string\n");
    gets(arr);
  14. Replies
    9
    Views
    4,458

    Word Sort Program

    I need a program to sort the words of a string leixographically in C. For example : INPUT- how are you

    OUTPUT: are how you
Results 1 to 14 of 14