How do you access command-line arguments?
What is the difference between void main() and int main()?
#include<stdio.h> #include<conio.h> void main() {clrscr(); char another='y'; int num; for(;another=='y';) { printf("Enter a number"); scanf("%d",&num); printf("squre of %d is %d",num,num*num); printf("\nwant to enter another number y/n"); scanf("%c",&another); } getch(); } the above code runs only one time.on entering 'y' the screen disappeares.what can i do?
Hai why 'c' is the middle language
#include<stdio.h> #include<conio.h> void main() { clrscr(); int a=0,b=0,c=0; printf("enter value of a,b"); scanf(" %d %d",a,b); c=a+b; printf("sum is %d",c); getch(); }
What is meant by int fun const(int a, int b) { .... ... }
write a program that will print %d in the output screen??
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
In a header file whether functions are declared or defined?
What is the difference between fread buffer() and fwrite buffer()?
Can we change the value of #define in c?
What is a program flowchart and how does it help in writing a program?
What are predefined functions in c?