Note 1

Take Note:

Take a note while surfing.





Note With Ink

Give your Note a Colorful Tag.




Easy to Access

Stay on same information and in Sync wherever you are.

Note 2

Take Note:

Organize your information,It may take Shape.





Think With Ink

Differ your Content by Color.




Easy to Access

Easy to pull up your content from anywhere anytime.

Note 3

Take Note:

Don't Let information to miss,Because it take shape





Note With Ink

Simple an Easy Way to take a note.




Easy to Access

Get the same in next visit.

Programs Questions and Answers



  • 321. Write a program in C using command line argument, take input as diameter of circle and calculate the area of circle.
    

    Input : ,   Output :

  • Answer In: C  
     
    #include <stdio.h>
    #include <stdlib.h>
    #define PI 3.142

    int main(int argc, char * argv[])
    {
        float radius, area;
    if(argc == 1 ||  argc > 2)
          {
                printf("Enter the diameter of circle\n");
                exit(1);
          }
        radius = atoi(argv[1]) / 2;
        area = PI * radius * radius ;
        printf("Area of a circle = %5.2f\n", area);
    }
    Tags:

    TCS 

  • 322. Write a program to sort an array into two halves, one half ascending and second half descending. 

    Input : ,   Output :

    View Answer View Answer | Program Topics Array | Write Your Program Discuss in Forum | Add to Reading List To Reading List | Tag to companies Asked In | Level Experience, Fresher
  • Answer In:
     No Discussion on this question yet!
    Tags:

    TCS Global Edge 

  • 323. Write a c program to convert binary to decimal using command line arguments?

    Input : ,   Output :

  • Answer In: C  
     
    #include <stdio.h>
    int main(int argc, char *argv[])
    {
    int num,binary,decimal=0,rem,base=1;
    num=atoi(argv[1]);
    binary=num;
    while(num>0)
    {
    rem=num%2;
    decimal =rem*base;
    num=num/10;
    base=base*2;
    }
    printf("%d",decimal);
    return 0;
    }
    Tags:

    TCS 

  • 324. Define a macro which gives greatest number out of 3 numbers.

    Input : ,   Output :

  • Answer In:
     No Discussion on this question yet!
    Tags:

    Global Edge 

  • 325. Write a function to implement strcasecmp().

    Input : ,   Output :

  • Answer In:
     No Discussion on this question yet!
    Tags:

    Global Edge 

  • 326. Write recursive function for reversing a string.

    Input : ,   Output :

  • Answer In:
     No Discussion on this question yet!
    Tags:

    Global Edge 

  • 327. Write a function to implement strncpy using recursion.

    Input : ,   Output :

  • Answer In:
     No Discussion on this question yet!
    Tags:

    Global Edge 

  • 328. Write a function to check the divisibility by 8.

    Input : ,   Output :

  • Answer In:
     No Discussion on this question yet!
    Tags:

    Global Edge 

  • 329. Write a logic for Matrix multiplication.

    Input : ,   Output :

  • Answer In:
     No Discussion on this question yet!
    Tags:

    Global Edge 

  • 330. Find the 2nd largest element in array, without sorting and swap in the middle element.

    Input : ,   Output :

  • Answer In:
     No Discussion on this question yet!
    Tags:

    Global Edge