How to create a program that lists countries capitals when country is entered? (Terribly sorry, I'm a complete novist to coding with C, am looking for inspiration and general tips on how to code and create this program.)

No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C C++ Errors Interview Questions

Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?

2 Answers  

Given an int variable n that has been initialized to a positive value and, in addition, int variables k and total that have already been declared, use a do...while loop to compute the sum of the cubes of the first n whole numbers, and store this value in total . Thus if n equals 4, your code should put 1*1*1 + 2*2*2 + 3*3*3 + 4*4*4 into total . Use no variables other than n , k , and total .

3 Answers  

when i use cout or cin call & then either << or >> shows declaration syntax error...what should i do? cout<<"anything"; int a; cin>>a; return 0;

2 Answers  

what is macro in c? Difference between single linked list & double linked list what is fifo & lifo? what is stack & queue?

2 Answers   TCS,

how to convert decimal to binary in c using while loop without using array

50 Answers   Apple, Aptech, Arwen Tech, BCS, C2D Software, CEC,

main() { char c; for(c='A';c<='Z';c++) getch(); }

9 Answers  

what is run time error?

7 Answers  

write the value of x and y after execution of the statements: int x=19,y; y=x++ + ++x; x++; y++;

0 Answers  

void main() { for(int i=0;i<5;i++); printf("%d",i); } What is the output?..

31 Answers   College School Exams Tests, CTS, HCL, iGate, SmartData,

what is the large sustained error signal that eventually cause the controller output to drive to its limit

1 Answers   TCS,

A sample program using data structure? what is file handling?

0 Answers   TCS,

Assume that the int variables i and j have been declared, and that n has been declared and initialized. Write code that causes a "triangle" of asterisks of size n to be output to the screen. Specifically, n lines should be printed out, the first consisting of a single asterisk, the second consisting of two asterisks, the third consistings of three, etc. The last line should consist of n asterisks. Thus, for example, if n has value 3, the output of your code should be * ** *** You should not output any space characters. Hint: Use a for loop nested inside another for loop.

2 Answers   HCL,