1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
gavmur [86]
3 years ago
5

Write a c program that prints the initial letter of name​

Computers and Technology
1 answer:
crimeas [40]3 years ago
8 0

Answer:

#include<stdio.h>

#include<string.h>

int main(){

  char str[20];

  int i=0;

  printf("Enter a name: ");

  gets(str);

  printf("%c",*str);

  while(str[i]!='\0'){

      if(str[i]==' '){

           i++;

           printf("%c",*(str+i));

      }

      i++;

  }

  return 0;

}

Explanation:

You might be interested in
When working on word processor document,the del key does what
miskamm [114]
It deletes. so if you write a word and you want to delete it you just press on the del key and it's going to delete letter by letter.
Hope this helped!
4 0
4 years ago
Read 2 more answers
A tornado may be approaching if you observe which of the following?
musickatia [10]
I would go with a funnel cloud on this one. It is the most common sign although it does not guarantee a tornado. Most tornadoes that reach the ground do expand from funnel clouds, but a condensation funnel cloud formation is not absolutely necessary for a tornado to form.
5 0
3 years ago
Which of the following is an example of a syntax error?
Yuri [45]

Answer:

misspelling a programming language word

Explanation:

Syntax error is the type of error in programming, when the programmer insert some symbol that is not present in directories or libraries, the programmer not followed the rules of that particular programming language that is understandable to compiler.

For example in C++, it is necessary to insert the semicolon (;) after each statement. If the programmer not insert the semicolon after each statement, the program will show the syntax error.

If the programmer use integer instead of int to assign datatype to the variable in C++, it will also leads to the syntax error. Because in C++ library, Integer is defined with the help of "int".

4 0
3 years ago
Assume that the int variables i, j and n have been declared, and n has been initialized. Write code that causes a "triangle" of
makvit [3.9K]

Answer:

The code that will cause the triangle of  asterisks is given by;

for (i=1; i<=n; i++){

for (j=1; j<=i; j++)

cout << "*";

cout << "\n";

}

Explanation:

6 0
3 years ago
According to the _____ model, the solar system formed from a cloud of dust and gas.
Mumz [18]
Answer A: Nebular Model
5 0
3 years ago
Other questions:
  • Which type of wireless network is<br> controlled through a wireless<br> access point?
    7·1 answer
  • If you have related data stored in multiple tables, create a(n) ________ to produce a pivottable on the combined data.
    13·1 answer
  • Why is internet safety important
    14·2 answers
  • During the _______ steps of the information processing cycle, data is manipulated, calculated, or organized to create useful inf
    9·1 answer
  • g Write a recursive function all capital (L,start ,stop) that takes a string L and two integers. It returns a Boolean (True/Fals
    8·1 answer
  • With that ------ outlook he doesn't trust anyone.
    11·1 answer
  • Which of the following correctly declares and initializes a Scanner object that will use input from the keyboard as its data sou
    13·2 answers
  • You do not need to remove the lead weights inside tires before recycling them. A) TrueB) False
    15·1 answer
  • What best describes the computer's BIOS (basic input-output system)?
    5·1 answer
  • Sypherpk is good go sub 2 him
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!