C Programming and Technical Programming Program


1. Print a square using ‘*’(star) symbols. Input is the number of stars per side of the square. For example if I give 4 as input then output should be

****
* *
* *
****

Read Solution (Total 10)

C Other Question

Function main is the starting point of execution of a program. Which of the following options shall help in making an executable program without the
use of main function in the program?
1. Any function can be made and marked as starting point using a language dependent syntax
2. Two macros can be used. One to hold the name of a function and its working and the other to call the first macro
3. Any program without a main function shall not do anything but can only produce a blank screen
4. It is not possible to run a program without a main function in a program
int main()
{
int x=0xffff;
x=x<