Search:

Type: Posts; User: royroy

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    913

    explain the output of printf

    #include<stdio.h>
    int main()
    {
    int x=9,y=8;
    printf("%d %d",x++,x++);
    }

    Why is the output 10 9 and not 9 10 ?
  2. Replies
    2
    Views
    1,740

    problem with linked list

    #include<stdio.h>
    #include<stdlib.h>
    struct node{
    int data;
    struct node *next;
    };
    int main()
    {
    struct node *start,*ptr;
    int n,i,data;
  3. Thread: linked list

    by royroy
    Replies
    5
    Views
    1,064

    linked list

    #include<iostream>
    #include<conio.h>
    #include<stdlib.h>
    using namespace std;
    int main()
    {
    typedef struct list
    {
    int info;
    struct list *link;
  4. Thread: prob

    by royroy
    Replies
    1
    Views
    746

    prob

    #include<iostream.h>
    #include<conio.h>


    class test
    {
    private:
    float a,b,c;
    int q,w;
    public:
  5. Thread: problem

    by royroy
    Replies
    2
    Views
    853

    problem

    #include<iostream.h>
    #include<conio.h>


    class test
    {
    private:
    float a,b,c;
    int q,w;
    public:
  6. Thread: float output

    by royroy
    Replies
    6
    Views
    2,732

    float output

    main()
    {
    float a= 0.7 ;
    if (a< 0.7)
    printf ( "c" ) ;
    else
    printf ( "C++· ) ;
    }
  7. Replies
    5
    Views
    914

    yes, i get it thanks

    yes, i get it
    thanks
  8. Replies
    5
    Views
    914

    ok let the value to the left of && be 1 then if...

    ok let the value to the left of && be 1 then if k=0 it must give 0 then?
  9. Replies
    5
    Views
    914

    problem with output

    main( )
    {
    int i = -3, j = 2, k = 0, m ;
    m = ++i II ++i && ++k ;
    printf ( "\n%d %d %d %d", i, j, k, m) ;
  10. Thread: problem in loop

    by royroy
    Replies
    6
    Views
    938

    problem in loop

    #include<iostream.h>
    #include<conio.h>
    class item{
    public:
    char name[20];
    int price[10];
    void enter();
    };
    void item::enter()
    {
  11. Thread: file handing

    by royroy
    Replies
    3
    Views
    1,264

    file handing

    #include <stdio.h> main(){ int ch; while ((ch = getchar()) != `\n') putchar(ch); return 0; }how can int store char here?
  12. Thread: linker error

    by royroy
    Replies
    4
    Views
    959

    same error

    same error
  13. Thread: linker error

    by royroy
    Replies
    4
    Views
    959

    linker error

    #include<stdio.h>
    #include<conio.h>
    void fun();
    void main()
    {
    int x=100;
    clrscr();
    printf("%d",x);
    fun();
    getch();
  14. Thread: structures

    by royroy
    Replies
    4
    Views
    810

    structures

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    struct dir{
    char name[10];
    int no[10];
    };
    struct dir doc[4];
    int i;
  15. Thread: function

    by royroy
    Replies
    4
    Views
    920

    #include #include float...

    #include<stdio.h>
    #include<conio.h>
    float fun(int x,int y)
    {
    return(x/y);
    }
    int main()
    {
    int a,b;
    float c;
  16. Thread: function

    by royroy
    Replies
    4
    Views
    920

    function

    #include<stdio.h>
    #include<conio.h>
    int main()
    {
    int a,b;
    float c;
    clrscr();
    printf("Enter two numbers for division\t");
    scanf("%d %d",&a,&b);
    c=fun(a,b);
  17. Replies
    10
    Views
    1,237

    addreaa of array

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int a[20],i,n,*j;
    clrscr();
    printf("Enter 5 elements\n ");
    for(i=0;i<5;i++){
    scanf("%d",&a[i]);
    j=&a[i];
  18. Thread: strange outputs

    by royroy
    Replies
    5
    Views
    1,474

    oops!

    oops!
  19. Thread: strange outputs

    by royroy
    Replies
    5
    Views
    1,474

    strange outputs

    #include<stdio.h>
    #include<conio.h>
    swap(int x,int y);
    int main()
    {
    int a,b;
    clrscr();
    printf("Enter two numbers ");
    scanf("%d%d",&a,&b);
    swap(a,b);
  20. Replies
    2
    Views
    1,760

    always giving output as 0.000000

    #include<stdio.h>
    float square(float x);
    int main()
    {
    float a,b;
    printf("Enter a num");
    scanf("%d",&a);
    b=square(a);
    printf("\nSquare is %f",b);
    return 0;
  21. Replies
    2
    Views
    4,947

    thank you

    thank you
  22. Replies
    2
    Views
    4,947

    function calsum should have a prototype??

    #include<stdio.h>
    void main()
    {
    int a,b,c,sum;
    printf("\nEnter three num ");
    scanf("%d%d%d",&a,&b,&c);
    sum=calsum(a,b,c);
    printf("\nsum=%d",sum);
    }
    calsum(x,y,z)
  23. Replies
    6
    Views
    6,160

    it gives me error around line 3

    it gives me error around line 3
  24. Replies
    6
    Views
    6,160

    decleration terminated incorrectly in turbo c

    please help sorting out the error
    insert

    #include<stdio.h>
    #include<conio.h>
    {
    void main()
    int a[10][10],b[10][10],q,w,e,r,i,j,k,l;
    printf("Enter the size of first matrix : ");...
Results 1 to 24 of 27
Page 1 of 2 1 2