C programming
Description: c programming | |
Number of Questions: 15 | |
Created by: Tanuja Atwal | |
Tags: c programming Insert the Missing Character Visual Reasoning Logical Venn Diagram Alphabet Test Sequencing Coding Decoding Coding-Decoding Logical Reasoning C Language Fundamentals of Computer Programming |
Wild pointer in 'C' ____________.
Find the output of the following expression.
#include<stdio.h>
#include<conio.h>
void main()
{
int x, y =3;
x= ++y + 7;
printf(" %d " , x)
}
FInd the output of the following expression.
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
for(i=1;i<5;i++)
printf(" %d ",i);
}
Find the value of C. C = (a>0 && a<1)? a : b given a =10 , b = 20
Which of the following is/are correct statements for classes and objects in C++ language?
Find the output of the following expression. #include<stdio.h> #iinclude<conio.h> void main() { int x=5 , y; y = ++x; printf(%d , y); }
In how many categories can the data types of C be classified?
Which of the following given standard functions accepts two arguments while calling?
Which of the following is/are the valid rules for declaring a virtual function in C++?
How many valid categories of character sets are there in C language?
Find out the output of the following program or error (if any).
#include<stdio.h>
#include<conio.h>
int main()
{
const int num=12;
++num;
printf("num=%d",num);
getch();
}
Which of the following arithmetic operations is/are not possible in C language?
Find out the output of the given program or error (if any).
#include<stdio.h>
#include<conio.h>
int main()
{
unsigned u=65535;
printf("u=%d",u);
getch();
}
Which of the following is/are the standard header files in ANSII C?
What is the ASCII value of ESC character?
#include<stdio.h>
#include<conio.h>
using namespace std;
class first
{
int b;
public:
first()
{
b=10;
}
void display()
{
cout<<\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\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