52.write a “Hello World” program in “c” without using a
semicolon?
53.Give a method to count the number of ones in a 32 bit number?
54.write a program that print itself even if the source file
is deleted?
55.Given an unsigned integer, find if the number is power of 2?

Answer Posted / chandan

52.write a �Hello World� program in �c� without using a
semicolon?
#include<stdio.h>
void main()
{
if(printf("Hello world"))
{}
//if(!(printf("Hello world"))) {} it will also work.
//while(!(printf("Hello world"))) {} it will also work.
}

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an auto variable in c?

750


What are categories used for in c?

563


Why isn't any of this standardized in c? Any real program has to do some of these things.

623


What are header files and explain what are its uses in c programming?

605


What does == mean in texting?

659






what are the different storage classes in c?

660


How do c compilers work?

606


What is a program flowchart?

598


What is the use of #define preprocessor in c?

613


In C, What is the #line used for?

1049


What is difference between array and structure in c?

573


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

725


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.

4983


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

694


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

1495