As usually reading through stuff I got this question in mind.
If I have a character array initialization like below , what will be the time complexity for this statement?
char array[] = {'a','b','c','d','e'};
Will it actually execute 5 time to assign each variable; as we do in loop. If assumption is true why is it so?
depending on where the declaration occurs and the compiler’s intelligence, it could be O(1) or O(n). some cases: