LEC04_EX02 - cout<<name[k]; k++; }...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> using namespace std; u int main() { char name[] = "Steve Smith"; int numbers[7] = {1,2,3,4,5,6,7}' int k=0; while (name[k] != '\0'){
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout&lt;&lt;name[k]; k++; } cout&lt;&lt;endl; for (int q=0;q&lt;8;q++){ cout&lt;&lt;numbers[q]&lt;&lt;&quot;\t&quot;; } cout&lt;&lt;endl; c return 0; }...
View Full Document

This note was uploaded on 02/20/2011 for the course ENGR 127 taught by Professor Hunter,eleswarapu,cortez during the Spring '11 term at Rutgers.

Ask a homework question - tutors are online