Tuesday, 27 August 2013

c programe to demonstrate coma operater

#include<stdio.h>
#include<conio.h>

int func1();

int main()
{
    int x,y=0;
   
    //y=(x=100,x+10);
    y=(x=func1(),x+10);
   
    printf("y=%d",y);
   
    getch();
   
    return 0;
}
   

int func1()
{
    return(100);
}

No comments:

Post a Comment