Online Test

:

 

Which header file should be included for a function which accepts variable number of arguments?


Which escape character can be used to begin a new line in C?  


Which of the following is the correct output of the program?

#include<stdio.h>
int main()
{
    int a[5]={9,10};
    printf("%d,%d",a[1],a[2]);
    return 0;
}

Primary data types are:


Output of the printf("%-2.3f\n",17.23478) will be 


Which escape character can be used to beep from speaker in C?  


Which of the following is an example of compounded assignment statement?  


Which of the following is not a valid variable name declaration?


What is the output of the following program?

#include<stdio.h>
void main()
{
        float f=0.1;
        char c='a';
        double d=0.456;
        f++;
        c++;
        d++;
        printf("%f %c %f\n",f,c,d);
}

The maximum length of a variable in C is ___  


What is the output of the following program?

#include<stdio.h>
void main()
{
	printf("%c","TechEpi"[4]);
}

For the following code snippet:
       char *str = “Techepi.com\0″ “Online Test”;
       The character pointer str holds reference to string:


A character variable can store  x characters at a time:


What is the output of this C code?

  #include <stdio.h>
    union p
    {
        int x;
        char y;
    }k = {.y = 97};
    int main()
    {
        printf("%d\n", k.y);
    }

What is the output of the following program?

#include<stdio.h>
int main()
    {
        int a=2;
        a=a+2<<1;
        printf("%d ",a);
        a=a+(2<<1);
        printf("%d",a);
    }
 

About Us

TechEpi.com is an online learning website.We cover the latest tech news,online tutorials,blog,online test for Aptitude,C,Java,PHP to improve your knowledge.

Newsletter


Follow TechEpi on