Saturday, February 6, 2010

',' operator:

',' operator is used in c program for separating two variables and separate the two
statements and some other.
eg:
int a,b;
and we can use ',' operator like this also
printf("hi"),printf("hi");
These two statements will be written like this also

int a,
b;

and

printf("hi"),
printf("shark");

EXAMPLE CODING:
#include< stdio.h >
main()
{
int a=1,
b=2;
printf("%d",a),
printf("%d",b);
}

OUTPUT


1   2

0 comments:

Post a Comment