Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Mingster
  • Content: Threads
  • Order by date
  1. Mingster

    What's wrong with this code: array assignment problem

    Hi recently I try to do something like the following: char buf[6] = { 'a','b','c','d','e','f'}; char combination[2] = { buf[3], buf[2] }; and the C compiler gives me error "illegal constant expression" Does anyone know why the code is wrong? What I am trying to do is create an array...

Part and Inventory Search

Back
Top