This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
/* | |
Napišite program u kojem ćete: | |
Kreirati statički niz od pet (5) cjelobrojnih vrijednosti; | |
Kreirati dinamički niz od dva pokazivača; | |
Inicijalizirati jedan od pokazivača da pokazuje na najmanji element u statičkom nizu; | |
Inicijalizirati drugi pokazivač da pokazuje na najveći element u statičkom nizu; | |
Koristite funkcije. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
double niz[10] = {0.0, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9}; | |
cout << sizeof(double) << "; " << " a ovaj niz zauzima: " << sizeof(niz) << endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
double niz[10] = {0.0, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9}; | |
cout << sizeof(double) << "; " << " a ovaj niz zauzima: " << sizeof(niz) << endl; |