Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Define Constant argument:
The argument can be a constant argument. The constant variable cannot be changed inside the function definition when the argument is declared as constant.
void f_const(int x, const int y);
void main( )
{int a10, b=20,c;
c =f_const(a, b); //The value of c is 30
}
int f_ref(int x, const int y)
{ //y=20; // Is invalid because y is declared as constant variable. return (x+y);
void f_const(int x, const int y=100);
{int a=200, b,c;
c =f_const(a); //The value of c is 300
int f_const(int x, const int y)
Write a C program to compute the value of a sine wave from 0 to 2P with an increment of 0.1 radians. #include stdio.h #include math.h #define pi 3.1415927 void main() { c
a palindrome is a string that reads the same from bhote the ends
The break statement The break statement, which was already covered in the switch.. case, can also be used in the loops. When a loop statement is encountered in the loops the co
i have an array of structs, and am trying to make a pointer that can point to a certain struct within the array
Example for Register Storage Class - computer programming? main() { register int i; for (i=0; i { ............... ............... } } /* block exit will free the register
Control Flow The control flow statements are used when it is needed that the flow of the program is to be changed after taking some decision. This control flow statement theref
C Program for SORTING # include stdio.h> void main() { char a; int *p; int i,j,temp; clrscr(); p=&i;
Pointer to function: int mul(int a, int b, int c) { return a*b*c; } void main() { int (*function_pointer)(int, int, int); function_pointer = &mul;
People sometimes give their phone numbers using one or more alphabetic characters. Create a program that converts the alphabetic characters to their corresponding numbers. For exam
i need a program that generates this output: The highest card wins! Suit Order is: clubs, diamonds, hearts and spades The computers card is the 5 of Spades. The player’s card is t
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd