PlacementPapers.asia

Placement Papers 2008,2009,2010 for Freshers.Largest Collection of IT Companies Placement Papers and Interview Questions in india. Latest Placement Papers of IT and Non-IT Companies.




Categories

Links

  • Alter Placement paper 1
    2. What is the difference between malloc, calloc and realloc?
    3. What does malloc return in C and C++?
    4. main()
    {
    char *a=”hello”;
    char *b=”bye”;
    char *c=”hai”;
    int x=10,y=100;
    c=(x)?a:b;
    printf(“%s”,c);
    }
    whats the output?
    5. void main()
    {
    int a,b;
    a=sumdig(123);
    b=sumdig(123);
    printf(“%d %d”,a,b);
    }
    int sumdig(int n)
    {
    static int sum;
    int d;
    if(n!=0)
    {
    d=n%10;
    n=(n-d)/10;
    sum=sum+d;
    sumdig(n);
    }
    else
    return s;
    }
    what is the output?
    6. Declare a pointer to a function that takes a char pointer
    as argument and returns [...]

    No Comments