Which escape character can be used to begin a new line in C?
When we mention the prototype of a function?
Which escape character can be used to beep from speaker in C?
For the following code snippet: char *str = “Techepi.com\0″ “Online Test”; The character pointer str holds reference to string:
Which symbol is used as a statement terminator in C?
What is the output of the following program?
#include<stdio.h> void main() { printf("32%5=%d",32%5); printf("\n32%-5=%d",32%-5); printf("\n-32%5=%d",-32%5); printf("\n-32%-5=%d",-32%-5); }
#include<stdio.h>
void
main()
{
printf
(
"32%5=%d"
,32%5);
"\n32%-5=%d"
,32%-5);
"\n-32%5=%d"
,-32%5);
"\n-32%-5=%d"
,-32%-5);
}
Which of the following is a Scalar Data type
#include<stdio.h> void main() { printf("%c","TechEpi"[4]); }
#include<stdio.h> void main() { int[] a={100,200,300}; printf("%d",a[2]); }
int
[] a={100,200,300};
"%d"
,a[2]);
C programming language was developed by :
Which header file should be included for a function which accepts variable number of arguments?
The maximum length of a variable in C is ___
Match the following
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); }
#include<stdio.h> void main() { int arr[]={1.999999,2.999999}; printf("%d %d %d %d ",*(arr),*(arr+0), 1[arr],0[arr+1]); }
arr[]={1.999999,2.999999};
"%d %d %d %d "
,*(arr),*(arr+0), 1[arr],0[arr+1]);
#include<stdio.h> void main() { int a=6,b=5,c=4; printf("%d",(a>b>c?1:0)); }
#include<stdio.h> int main() { int a=2; a=a+2<<1; printf("%d ",a); a=a+(2<<1); printf("%d",a); }
a=2;
a=a+2<<1;
"%d "
,a);
a=a+(2<<1);
C was developed in the year ___
Which of the following is not a valid variable name declaration?
A character variable can store x characters at a time:
What will be the output of the program below
#include main() { char *a[4]={"Amit","Abhinav","Akhil","Prashant"}; int i = sizeof(a)/sizeof(char *); printf("i = %d\n", i); }
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; }
a[5]={9,10};
"%d,%d"
,a[1],a[2]);
return
0;
#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); }
float
f=0.1;
char
c=
'a'
;
double
d=0.456;
f++;
c++;
d++;
"%f %c %f\n"
,f,c,d);
Which of the following is an example of compounded assignment statement?
Primary data types are:
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.