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.

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.

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

Input : NA

Output : NA

|  Basics | | | |  Fresher
``` ```
#include <stdio.h>#include <stdlib.h>#define PI 3.142int 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

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

Input : NA

Output : NA

|  Array | | | |  Experience, Fresher
``` ```
<p>#include <stdio.h></p><p>int main(void)<br />{<br />    int a[10], i=0, j=0, n, t;</p><p>    printf ("\n Enter the no. of elements: ");<br />    scanf ("%d",
``````
Question :: 323
Write a c program to convert binary to decimal using command line arguments?

Input : NA

Output : NA

|  Basics | | | |  Fresher
``` ```
#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

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

Input : NA

Output : NA

|  Basics | | | |  Fresher
` `No Discussion on this question yet!``
Question :: 325
Write a function to implement strcasecmp().

Input : NA

Output : NA

|  Strings | | | |  Fresher
``` ```
<p>#include<stdio.h></p><p>#include<conio.h></p><p>void main()</p><p>{</p><p>char str1="EXAMPLE";</p><p>char str2="example";</p><p>int result;</p><p>result=strcasecmp(str1,str2);</p><p>if(result==0)</p><p>printf("strings are equal");</p><p>else if(result<0)</p><p>printf("%s is less than %s",str1,str2);</p><p>else</p><p>printf("%s is greater than %s",str1,str2);</p><p>}</p>
``````
Question :: 326
Write recursive function for reversing a string.

Input : NA

Output : NA

|  Strings | | | |  Fresher
` `No Discussion on this question yet!``
Question :: 327
Write a function to implement strncpy using recursion.

Input : NA

Output : NA

|  Strings | | | |  Fresher
` `No Discussion on this question yet!``
Question :: 328
Write a function to check the divisibility by 8.

Input : NA

Output : NA

|  Basics | | | |  Fresher
` `No Discussion on this question yet!``
Question :: 329
Write a logic for Matrix multiplication.

Input : NA

Output : NA

|  Array | | | |  Fresher
` `No Discussion on this question yet!``
` `No Discussion on this question yet!``