1. What will be the output of the following programs.
a) #include <stdio.h>
Main()
{
Int x=4;
While(x==1)
{
X=x-1;
Printf(ā%dā,x);
--x;
}
}
Answer Posted / bhavani
i think x initialization wrong.so it has an error...........
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
List some basic data types in c?
What is action and transformation in spark?
How do I use void main?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What is the explanation for the dangling pointer in c?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
What are structures and unions? State differencves between them.
Give differences between - new and malloc() , delete and free() ?
What is the difference between a function and a method in c?
What is #include cctype?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
Which header file is essential for using strcmp function?
What is the process to create increment and decrement stamen in c?
What is the general form of #line preprocessor?