Taste C online Test

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 ) ) ;

}


























































Description:

Test to test the taste of C language

Comments

Want to learn?

Sign up and browse through relevant courses.

or fill this simple form
Name:
Your Email:
Password:
Country:
Contact no.:


Area code Number
Subjects you are interested in:
Word verification: (Enter the text as shown in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
Suriya Akter
Software professional having 6+ yrs of exp in dev- C,C++,C#.Net
12 Followers
Tests: 5

Your Facebook Friends on WizIQ

More Tests By Author

C# Basic quiz
5 Questions | 176 Attempts

LINQ test- 1
5 Questions | 119 Attempts

CSharp your skills-3
5 Questions | 89 Attempts

CSharp your skills -1
6 Questions | 762 Attempts

Connect