How to calculate the age from the date of birth by using the
program?
Answers were Sorted based on User's Feedback
Answer / vin
This can be done
by asking the user to enter the year of birth and get the
current date by using the functions in time.h
just you have to subtract the year.
| Is This Answer Correct ? | 16 Yes | 2 No |
Answer / dileep
we are using time.h header file to get the date of birth of
user. in this header file haveing the some in built functions
| Is This Answer Correct ? | 5 Yes | 3 No |
How many types of access specifier in c# and vb.net?
What is ambiguity in c++
What are the advantages of polymorphism?
What is multidimensional array?
create a c++ program that will accepts 9 inputs using 3 by 3 array.
write a progra in c++ using class & object to find out wheather a given no. is prim or not.
Hi All, I am new to programming and want to know how can i write a code to take input of 2 numbers from user and swap it without using a temp variable?
#include <string.h> #include <stdio.h> #include <stdlib.h> #include<conio.h> void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort
what is different between oops and c++
what is polymorphism?
Why do we use inheritance?
What is cohesion in oop?