Search:

Type: Posts; User: baffleddreams

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,085

    problem with structures

    in structures can we swap two structure variables as such?like for example:
    say i create a structure called book and i want to arrange the books in ascending order depending on the book...
  2. Try this code...

    this is simlper and easy...
    insert


    #include<stdio.h>
    #include<conio.h>
    int main()
    {
    int n,s=-1,pwr=1,dr=1;
    float nr,x,sum,i,x1;
  3. Replies
    5
    Views
    3,488

    i think fgets() is used to get a file....also a...

    i think fgets()
    is used to get a file....also a string....try only with gets ....cos fgets() has a lot of code writtern behind it(same is the case with scanf() )
  4. Replies
    4
    Views
    3,135

    how?

    how do i use a loop construct?and what is a loop construct?
  5. Replies
    6
    Views
    9,598

    use strcmp() function

    u can use the strcmp() function ...
    char s[n][20];//where n is d no of strings
    insert

    for(i=0;1<n;i++)
    {
    for(j=i+1;j<n;j++)
    {
    ...
  6. Replies
    4
    Views
    3,135

    Partitioning array

    I am new 2 programming .....i have a problem with partitioning an array using quick sort methord.....i am not supposed 2 use recursion ....instead i've used the goto statement....can any one pls...
  7. Replies
    16
    Views
    5,904

    .......

    in this above program ive just done partitioning....now how do i find the kth largest and the kth smallest element?
  8. Replies
    16
    Views
    5,904

    this is what i have done

    i have used the quick sort methord........ im not supposed to use recursion
    insert

    #include<stdio.h>
    #include<conio.h>

    int main()
    {
    int x[20],n,i,k;
    printf("\nEnter size...
  9. Replies
    2
    Views
    952

    partitioned array

    this is what i have done till now.....i am not supposed to use "recursion"
    insert

    #include<stdio.h>
    #include<conio.h>

    int main()
    {
    int x[20],n,i,k;
    printf("\nEnter size...
  10. Replies
    16
    Views
    5,904

    is is that v first sort it in ascending or...

    is is that v first sort it in ascending or descending order and the find the kth largest or smallest ?
  11. Replies
    16
    Views
    5,904

    Kth largest &kth smallest

    Can anyone help me 2 find d kth largest &kth smallest element in an array?
  12. Replies
    1
    Views
    1,678

    avoid duplicates in an ordered array

    how 2 remove duplicates in an ordered array?please give me a solution
  13. Replies
    2
    Views
    1,005

    avoiding duplicates

    do u noe how 2 avoid duplicates in an array while taking inputs
  14. Replies
    2
    Views
    952

    Partitioning array

    please help me....im new 2 prog.....i wanna noe what partitioning array is,,,
  15. Replies
    5
    Views
    4,594

    swapping of two numbers

    i want to swap two numbers without using a third variable && an arithmetic operator
Results 1 to 15 of 15