-3
void getquestionasked(char quest[]); int main() { char question[150]; getquestionasked(question); printf("%s", question); return 0; } void getquestionasked(char quest[]) { quest = "In what unit is electric power measured?"; } 
1
  • 3
    Use strcpy to copy strings. Commented Dec 6, 2019 at 16:26

1 Answer 1

2

Use

#include <string.h> //… strcpy( quest, "In what unit is electric power measured?" ); 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.