Other Languages - C Language - Asked By S PRATHIBA on 26-Oct-11 04:21 AM

Dear All,

        Is it possible to assign multiple value or string to a single variable without using arrays in C Language.
Santhosh N replied to S PRATHIBA on 26-Oct-11 05:56 AM
You could do that using some seperator in between the items but it involves lot of unnecessary maintenance when required to access the individual items in having multiple items in a single variable...

var str = "item1;item2;item3";
Venkat K replied to S PRATHIBA on 26-Oct-11 06:18 AM
num1 = num2 = num3 = 5;