Thursday, August 2, 2007

Comma Testing

Comma Can be used as a separator in C++ program , Look at the sample application :



void CommaTesting()

{



int a,int b;



a= 20,b = 20;



printf("\n Value of a = %d \t b = %d",a,b);

}



int main(int argc, char* argv[])

{



CommaTesting();

return 0;

}



the Output is :



Value of a = 10 b = 20

0 comments: