Answer Posted / mehak saini
include<stdio.h>
include<conio.h>
void main()
{
inti,num;
printf("enter the number")
scanf(%d",&num);
for(i=1;i=<num;i+1)
{
if(i%2==0)
{
printf("%d",i);
}
}
getch();
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we access the array using a pointer in c language?
What do you mean by c what are the main characteristics of c language?
What are void pointers in c?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
Where is c used?
What is #define?
How can you increase the size of a statically allocated array?
What happens if header file is included twice?
Explain how can I pad a string to a known length?
When should the register modifier be used? Does it really help?
Explain how can I read and write comma-delimited text?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
Explain #pragma statements.
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
What is the difference between constant pointer and constant variable?