Can we use char/float variable for indexing of array elements? For ex,
int arr[10];
arr[ j ] =3;
whether j can be of type char or float?
What will be output of this program:
#include<stdio.h>
main()
{
if( printf ( "hello suriya" ) )
{
}
}
Can U predict output of this program:
void main()
{
int p=3,q=5,x,y;
x = p,q;
y = (p,q);
printf ("%d %d",x,y);
}
What will be out put of this program:
main()
{
int i=3, j=0;
if( i ==3 && j++ )
printf("%d %d",i,j);
else
printf("%d %d ",i,j);
}
Output of program will be :
main( )
{
int t = 4 ==3 ? 5 != 8 : 0 || 6==9 ;
printf("%d " , t ) ;
}
Will this program compile?
main( )
{
int k=6;
printf( "k%d", printf ( "%d" , k ) ) ;
}