What do you understand by friend-functions? How are they used?
No Answer is Posted For this Question
Be the First to Post Answer
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?
Can we initialize extern variable in c?
how to write palindrome program?
how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?
Do you know what are the properties of union in c?
What is the 'named constructor idiom'?
How can I open a file so that other programs can update it at the same time?
What is the output of the program given below #include<stdio.h> main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
21 Answers ADITI, Student, TCS,
what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); }
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
If the static variable is declared as global, will it be same as extern?